summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2014-09-11 16:58:35 -0300
committerThiago Santos <thiagoss@osg.samsung.com>2014-09-11 18:45:11 -0300
commitf3ae1be017d50cf5a779ee87cc18739621c446d0 (patch)
treef57c3d62543ec8b274efc1581e04b24930f7076f
parenta38d2567d2a0623ba4631bea0117cfcad6daa403 (diff)
downloadgstreamer-plugins-base-f3ae1be017d50cf5a779ee87cc18739621c446d0.tar.gz
decodebin: protect buffering message handling
Use the object lock to avoid concurrent processing which leads to small disasters (assertions or crashes)
-rw-r--r--gst/playback/gstdecodebin2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c
index 01984fe7d..db77dbc7a 100644
--- a/gst/playback/gstdecodebin2.c
+++ b/gst/playback/gstdecodebin2.c
@@ -4625,6 +4625,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);
/*
@@ -4678,6 +4679,7 @@ gst_decode_bin_handle_message (GstBin * bin, GstMessage * msg)
} else {
gst_message_replace (&msg, smaller);
}
+ GST_OBJECT_UNLOCK (dbin);
}
if (drop)