summaryrefslogtreecommitdiff
path: root/gst/mpegpsmux
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2011-02-20 23:57:19 -0800
committerDavid Schleef <ds@schleef.org>2011-02-20 23:58:26 -0800
commit6d8740476ccd3a3498dc4f18c19733643825c7b8 (patch)
tree41a1db943f9a937c1cfc8eac80d0b572cb395e3a /gst/mpegpsmux
parentcad8a864ffdd7c314550737517c55ef9f1465561 (diff)
downloadgstreamer-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.c4
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