outputselector: handle NULL pads in some cases
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 6 May 2011 14:11:44 +0000 (16:11 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 6 May 2011 15:39:08 +0000 (17:39 +0200)
plugins/elements/gstoutputselector.c

index ac3cf0f..f25dc19 100644 (file)
@@ -571,7 +571,8 @@ gst_output_selector_handle_sink_event (GstPad * pad, GstEvent * event)
       /* Send other events to pending or active src pad */
       output_pad =
           sel->pending_srcpad ? sel->pending_srcpad : sel->active_srcpad;
-      res = gst_pad_push_event (output_pad, event);
+      if (output_pad)
+        res = gst_pad_push_event (output_pad, event);
       break;
   }