mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
decodebin: protect buffering message handling
Use the object lock to avoid concurrent processing which leads to small disasters (assertions or crashes)
This commit is contained in:
parent
0ea1b559bf
commit
3657929e1f
1 changed files with 2 additions and 0 deletions
|
@ -4862,6 +4862,7 @@ gst_decode_bin_handle_message (GstBin * bin, GstMessage * msg)
|
|||
* on the list to this new value
|
||||
*/
|
||||
|
||||
GST_OBJECT_LOCK (dbin);
|
||||
gst_message_parse_buffering (msg, &msg_perc);
|
||||
|
||||
/*
|
||||
|
@ -4915,6 +4916,7 @@ gst_decode_bin_handle_message (GstBin * bin, GstMessage * msg)
|
|||
} else {
|
||||
gst_message_replace (&msg, smaller);
|
||||
}
|
||||
GST_OBJECT_UNLOCK (dbin);
|
||||
}
|
||||
|
||||
if (drop)
|
||||
|
|
Loading…
Reference in a new issue