From: Stefan Kost Date: Mon, 14 Mar 2011 08:05:34 +0000 (+0200) Subject: decodebin2: reflow configuring new multiqueue instance X-Git-Tag: 1.19.3~511^2~6555^2~1089 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7f1382112e48e932724707e81bde79950ac0d451;p=platform%2Fupstream%2Fgstreamer.git 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. --- diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c index 882d53f..998d15b 100644 --- a/gst/playback/gstdecodebin2.c +++ b/gst/playback/gstdecodebin2.c @@ -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 */