projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d2280b
)
Check that collectpads exists before removing pad
author
David Schleef
<ds@schleef.org>
Mon, 21 Feb 2011 07:57:19 +0000
(23:57 -0800)
committer
Tim-Philipp Müller
<tim.muller@collabora.co.uk>
Tue, 12 Apr 2011 19:32:21 +0000
(20:32 +0100)
The core now calls release pad from finalize, at which point
the collectpads might have already been freed.
gst/quicktime/gstqtmux.c
patch
|
blob
|
history
diff --git
a/gst/quicktime/gstqtmux.c
b/gst/quicktime/gstqtmux.c
index
1477db7
..
728e1f3
100644
(file)
--- a/
gst/quicktime/gstqtmux.c
+++ b/
gst/quicktime/gstqtmux.c
@@
-503,6
+503,7
@@
gst_qt_mux_finalize (GObject * object)
atoms_context_free (qtmux->context);
gst_object_unref (qtmux->collect);
+ qtmux->collect = NULL;
g_slist_free (qtmux->sinkpads);
@@
-3165,7
+3166,9
@@
gst_qt_mux_release_pad (GstElement * element, GstPad * pad)
}
}
- gst_collect_pads_remove_pad (mux->collect, pad);
+ if (mux->collect) {
+ gst_collect_pads_remove_pad (mux->collect, pad);
+ }
}
static GstPad *