mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-27 01:28:34 +00:00
Reset all internal state in finalize
This commit is contained in:
parent
02769b4a4d
commit
061a96fa94
1 changed files with 3 additions and 2 deletions
|
@ -272,6 +272,7 @@ gst_mxf_demux_reset (GstMXFDemux * demux)
|
||||||
demux->close_seg_event = NULL;
|
demux->close_seg_event = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (demux->adapter)
|
||||||
gst_adapter_clear (demux->adapter);
|
gst_adapter_clear (demux->adapter);
|
||||||
|
|
||||||
gst_mxf_demux_remove_pads (demux);
|
gst_mxf_demux_remove_pads (demux);
|
||||||
|
@ -2975,7 +2976,7 @@ gst_mxf_demux_finalize (GObject * object)
|
||||||
g_free (demux->requested_package_string);
|
g_free (demux->requested_package_string);
|
||||||
demux->requested_package_string = NULL;
|
demux->requested_package_string = NULL;
|
||||||
|
|
||||||
gst_mxf_demux_remove_pads (demux);
|
gst_mxf_demux_reset (demux);
|
||||||
|
|
||||||
G_OBJECT_CLASS (parent_class)->finalize (object);
|
G_OBJECT_CLASS (parent_class)->finalize (object);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue