summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-01-30 15:34:10 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-01-31 11:02:26 +0100
commit061a96fa94ba7ae8c4593a778b95e40a73df5342 (patch)
treed6f1d2d20607ebf4d66bae65934d2ee94f58ef05 /gst
parent02769b4a4d6d143bdad28e0143481bfd022e0143 (diff)
downloadgst-plugins-bad-061a96fa94ba7ae8c4593a778b95e40a73df5342.tar.gz
gst-plugins-bad-061a96fa94ba7ae8c4593a778b95e40a73df5342.tar.bz2
gst-plugins-bad-061a96fa94ba7ae8c4593a778b95e40a73df5342.zip
Reset all internal state in finalize
Diffstat (limited to 'gst')
-rw-r--r--gst/mxf/mxfdemux.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/mxf/mxfdemux.c b/gst/mxf/mxfdemux.c
index 5b2e66e5..2d4ac0f6 100644
--- a/gst/mxf/mxfdemux.c
+++ b/gst/mxf/mxfdemux.c
@@ -272,7 +272,8 @@ gst_mxf_demux_reset (GstMXFDemux * demux)
demux->close_seg_event = NULL;
}
- gst_adapter_clear (demux->adapter);
+ if (demux->adapter)
+ gst_adapter_clear (demux->adapter);
gst_mxf_demux_remove_pads (demux);
@@ -2975,7 +2976,7 @@ gst_mxf_demux_finalize (GObject * object)
g_free (demux->requested_package_string);
demux->requested_package_string = NULL;
- gst_mxf_demux_remove_pads (demux);
+ gst_mxf_demux_reset (demux);
G_OBJECT_CLASS (parent_class)->finalize (object);
}