diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2011-05-06 16:11:44 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2011-05-06 17:39:08 +0200 |
commit | cac9e8fee22e73ff2b0ceae33367e6e7d2bf4fee (patch) | |
tree | 9ca18c40806c87f6e79810cad567b31d4e4a6402 | |
parent | dcc5570f7f5b792abe2ab93cc19d2fe6c5daad2e (diff) |
outputselector: handle NULL pads in some cases
-rw-r--r-- | plugins/elements/gstoutputselector.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/elements/gstoutputselector.c b/plugins/elements/gstoutputselector.c index ac3cf0fb6..f25dc1983 100644 --- a/plugins/elements/gstoutputselector.c +++ b/plugins/elements/gstoutputselector.c @@ -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; } |