mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
encodebin: Set queues to silent=true
As encodebin doesn't connect to the queue signals, it can set queues to silent mode to make queue not emit them. Check https://bugzilla.gnome.org/show_bug.cgi?id=621299 for more info on queue's silent property.
This commit is contained in:
parent
b263bacc57
commit
3687b056c4
1 changed files with 3 additions and 2 deletions
|
@ -1046,7 +1046,8 @@ _create_stream_group (GstEncodeBin * ebin, GstEncodingProfile * sprof,
|
|||
* in the input queue */
|
||||
last = sgroup->outqueue = gst_element_factory_make ("queue", NULL);
|
||||
g_object_set (sgroup->outqueue, "max-size-buffers", (guint32) 1,
|
||||
"max-size-bytes", (guint32) 0, "max-size-time", (guint64) 0, NULL);
|
||||
"max-size-bytes", (guint32) 0, "max-size-time", (guint64) 0,
|
||||
"silent", TRUE, NULL);
|
||||
|
||||
gst_bin_add (GST_BIN (ebin), sgroup->outqueue);
|
||||
tosync = g_list_append (tosync, sgroup->outqueue);
|
||||
|
@ -1166,7 +1167,7 @@ _create_stream_group (GstEncodeBin * ebin, GstEncodingProfile * sprof,
|
|||
g_object_set (sgroup->inqueue, "max-size-buffers",
|
||||
(guint32) ebin->queue_buffers_max, "max-size-bytes",
|
||||
(guint32) ebin->queue_bytes_max, "max-size-time",
|
||||
(guint64) ebin->queue_time_max, NULL);
|
||||
(guint64) ebin->queue_time_max, "silent", TRUE, NULL);
|
||||
|
||||
gst_bin_add (GST_BIN (ebin), sgroup->inqueue);
|
||||
tosync = g_list_append (tosync, sgroup->inqueue);
|
||||
|
|
Loading…
Reference in a new issue