Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.
/ kms-core Public archive

Commit

Permalink
fix composite: kmsenctreebin.c use max-size-time instead of max-size-…
Browse files Browse the repository at this point in the history
…buffers
  • Loading branch information
ruddell authored and j1elo committed Jan 9, 2018
1 parent f93d8f9 commit 42c657c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gst-plugins/commons/kmsenctreebin.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#define GST_CAT_DEFAULT kms_enc_tree_bin_debug
GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAULT);

#define LEAKY_TIME 600000000 /*600 ms */
#define kms_enc_tree_bin_parent_class parent_class
G_DEFINE_TYPE (KmsEncTreeBin, kms_enc_tree_bin, KMS_TYPE_TREE_BIN);

Expand Down Expand Up @@ -479,7 +480,7 @@ kms_enc_tree_bin_configure (KmsEncTreeBin * self, const GstCaps * caps,
convert = kms_utils_create_convert_for_caps (caps);
mediator = kms_utils_create_mediator_element (caps);
queue = gst_element_factory_make ("queue", NULL);
g_object_set (queue, "leaky", 2, "max-size-buffers", 1, NULL);
g_object_set (queue, "leaky", 2, "max-size-time", LEAKY_TIME, NULL);

if (rate) {
gst_bin_add (GST_BIN (self), rate);
Expand Down

0 comments on commit 42c657c

Please sign in to comment.