qtmux: provide request pads under wider conditions
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Wed, 13 Jan 2010 18:30:45 +0000 (19:30 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 12 Apr 2011 19:32:15 +0000 (20:32 +0100)
Fixes #606859.

gst/quicktime/gstqtmux.c

index 2756e0d..a6ec2c3 100644 (file)
@@ -2305,7 +2305,7 @@ gst_qt_mux_request_new_pad (GstElement * element,
   if (templ->direction != GST_PAD_SINK)
     goto wrong_direction;
 
-  if (qtmux->state != GST_QT_MUX_STATE_NONE)
+  if (qtmux->state > GST_QT_MUX_STATE_STARTED)
     goto too_late;
 
   if (templ == gst_element_class_get_pad_template (klass, "audio_%d")) {