encodebin: fix queue property types when setting

This commit is contained in:
Tim-Philipp Müller 2017-01-02 12:54:32 +00:00
parent 01f467f6a4
commit b00bba5d43

View file

@ -1342,8 +1342,8 @@ _create_stream_group (GstEncodeBin * ebin, GstEncodingProfile * sprof,
* FIXME : figure out what max-size to use for the input queue */
sgroup->inqueue = gst_element_factory_make ("queue", NULL);
g_object_set (sgroup->inqueue, "max-size-buffers",
(guint32) ebin->queue_buffers_max, "max-size-bytes",
(guint32) ebin->queue_bytes_max, "max-size-time",
(guint) ebin->queue_buffers_max, "max-size-bytes",
(guint) ebin->queue_bytes_max, "max-size-time",
(guint64) ebin->queue_time_max, "silent", TRUE, NULL);
gst_bin_add (GST_BIN (ebin), sgroup->inqueue);