diff options
author | David Schleef <ds@schleef.org> | 2011-02-20 23:57:19 -0800 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2011-02-20 23:58:26 -0800 |
commit | 6d8740476ccd3a3498dc4f18c19733643825c7b8 (patch) | |
tree | 41a1db943f9a937c1cfc8eac80d0b572cb395e3a /gst/mpegpsmux | |
parent | cad8a864ffdd7c314550737517c55ef9f1465561 (diff) | |
download | gstreamer-plugins-bad-6d8740476ccd3a3498dc4f18c19733643825c7b8.tar.gz |
Check that collectpads exists before removing pad
The core now calls release pad from finalize, at which point
the collectpads might have already been freed.
Diffstat (limited to 'gst/mpegpsmux')
-rw-r--r-- | gst/mpegpsmux/mpegpsmux.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/mpegpsmux/mpegpsmux.c b/gst/mpegpsmux/mpegpsmux.c index d64fb353d..249dfc9ef 100644 --- a/gst/mpegpsmux/mpegpsmux.c +++ b/gst/mpegpsmux/mpegpsmux.c @@ -588,7 +588,9 @@ mpegpsmux_release_pad (GstElement * element, GstPad * pad) } GST_OBJECT_UNLOCK (pad); - gst_collect_pads_remove_pad (mux->collect, pad); + if (mux->collect) { + gst_collect_pads_remove_pad (mux->collect, pad); + } } static gboolean |