mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
decodebin2: Initialize variable correctly
If subdrained isn't initialized to FALSE then a chain might think that its group is drained when in fact it's not and this can cause a switch too early or even cause a deadlock.
This commit is contained in:
parent
9d2bcb08fe
commit
27058c1bc6
1 changed files with 1 additions and 1 deletions
|
@ -3078,7 +3078,7 @@ drain_and_switch_group (GstDecodeGroup * group, GstDecodePad * drainpad,
|
|||
* new information */
|
||||
for (tmp = group->children; tmp; tmp = tmp->next) {
|
||||
GstDecodeChain *chain = (GstDecodeChain *) tmp->data;
|
||||
gboolean subdrained;
|
||||
gboolean subdrained = FALSE;
|
||||
|
||||
handled |=
|
||||
drain_and_switch_chains (chain, drainpad, last_group, &subdrained,
|
||||
|
|
Loading…
Reference in a new issue