Commit 7f138211 authored by Stefan Kost's avatar Stefan Kost
Browse files

decodebin2: reflow configuring new multiqueue instance

Use a single g_object_set to configure the new multiqueue instance. Also don't
needlessly set "use-buffering" if it is the default.
parent 1d73ea88
......@@ -2696,10 +2696,12 @@ gst_decode_group_new (GstDecodeBin * dbin, GstDecodeChain * parent)
if (G_UNLIKELY (!group->multiqueue))
goto missing_multiqueue;
g_object_set (mq, "use-buffering", dbin->use_buffering, NULL);
/* default is for use-buffering is FALSE */
if (dbin->use_buffering) {
g_object_set (mq, "low-percent", dbin->low_percent, NULL);
g_object_set (mq, "high-percent", dbin->high_percent, NULL);
g_object_set (mq,
"use-buffering", TRUE,
"low-percent", dbin->low_percent,
"high-percent", dbin->high_percent, NULL);
/* configure queue sizes for preroll */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment