summaryrefslogtreecommitdiff
path: root/ext/mplex/gstmplex.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mplex/gstmplex.cc')
-rw-r--r--ext/mplex/gstmplex.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/mplex/gstmplex.cc b/ext/mplex/gstmplex.cc
index 408948559..7f7b4ecae 100644
--- a/ext/mplex/gstmplex.cc
+++ b/ext/mplex/gstmplex.cc
@@ -676,7 +676,8 @@ gst_mplex_release_pad (GstElement * element, GstPad * pad)
g_free (padname);
/* may now be up to us to get things going */
- gst_mplex_start_task (mplex);
+ if (GST_STATE (element) > GST_STATE_READY)
+ gst_mplex_start_task (mplex);
GST_MPLEX_MUTEX_UNLOCK (mplex);
}
}