mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
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.
This commit is contained in:
parent
1d73ea887d
commit
7f1382112e
1 changed files with 5 additions and 3 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue