mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
gst/decodebin2: Don't expose chains if we're shutting down.
This avoids adding flushing pads to ourself
This commit is contained in:
parent
550b6fa0c1
commit
64c8b1d5d9
1 changed files with 9 additions and 0 deletions
|
@ -2579,6 +2579,15 @@ gst_decode_bin_expose (GstDecodeBin * dbin)
|
|||
|
||||
GST_DEBUG_OBJECT (dbin, "Exposing currently active chains/groups");
|
||||
|
||||
/* Don't expose if we're currently shutting down */
|
||||
DYN_LOCK (dbin);
|
||||
if (G_UNLIKELY (dbin->shutdown == TRUE)) {
|
||||
GST_WARNING_OBJECT (dbin, "Currently, shutting down, aborting exposing");
|
||||
DYN_UNLOCK (dbin);
|
||||
return FALSE;
|
||||
}
|
||||
DYN_UNLOCK (dbin);
|
||||
|
||||
/* Get the pads that we're going to expose and mark things as exposed */
|
||||
if (!gst_decode_chain_expose (dbin->decode_chain, &endpads)) {
|
||||
g_list_foreach (endpads, (GFunc) gst_object_unref, NULL);
|
||||
|
|
Loading…
Reference in a new issue