gst/playback/gststreamselector.c: Don't unref a NULL pad.

Original commit message from CVS:
* gst/playback/gststreamselector.c: (gst_stream_selector_dispose):
Don't unref a NULL pad.
This commit is contained in:
Tim-Philipp Müller 2006-11-10 00:52:55 +00:00
parent 099f2f0ef7
commit 69c8c3adc0
2 changed files with 10 additions and 2 deletions

View file

@ -1,4 +1,9 @@
2006-11-09 Christian F.K. Schaller <set EMAIL_ADDRESS environment variable>
2006-11-09 Tim-Philipp Müller <tim at centricular dot net>
* gst/playback/gststreamselector.c: (gst_stream_selector_dispose):
Don't unref a NULL pad.
2006-11-09 Wim Taymans <wim@fluendo.com>
* ext/ogg/gstoggdemux.c: (gst_ogg_pad_submit_page),
(gst_ogg_demux_get_prev_page), (gst_ogg_demux_perform_seek),

View file

@ -167,7 +167,10 @@ gst_stream_selector_dispose (GObject * object)
{
GstStreamSelector *sel = GST_STREAM_SELECTOR (object);
gst_object_unref (sel->active_sinkpad);
if (sel->active_sinkpad) {
gst_object_unref (sel->active_sinkpad);
sel->active_sinkpad = NULL;
}
G_OBJECT_CLASS (parent_class)->dispose (object);
}