mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 12:10:37 +00:00
gst/qtdemux/qtdemux.c: Fix two memleaks.
Original commit message from CVS: * gst/qtdemux/qtdemux.c: (gst_qtdemux_change_state), (gst_qtdemux_add_stream): Fix two memleaks.
This commit is contained in:
parent
04e02014d7
commit
28215a31c1
2 changed files with 15 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2005-01-18 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
|
* gst/qtdemux/qtdemux.c: (gst_qtdemux_change_state),
|
||||||
|
(gst_qtdemux_add_stream):
|
||||||
|
Fix two memleaks.
|
||||||
|
|
||||||
2005-01-18 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
2005-01-18 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
* ext/faad/gstfaad.c: (gst_faad_srcgetcaps):
|
* ext/faad/gstfaad.c: (gst_faad_srcgetcaps):
|
||||||
|
|
|
@ -529,6 +529,10 @@ gst_qtdemux_change_state (GstElement * element)
|
||||||
qtdemux->need_discont = FALSE;
|
qtdemux->need_discont = FALSE;
|
||||||
qtdemux->need_flush = FALSE;
|
qtdemux->need_flush = FALSE;
|
||||||
gst_bytestream_destroy (qtdemux->bs);
|
gst_bytestream_destroy (qtdemux->bs);
|
||||||
|
if (qtdemux->tag_list) {
|
||||||
|
gst_tag_list_free (qtdemux->tag_list);
|
||||||
|
qtdemux->tag_list = NULL;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case GST_STATE_READY_TO_NULL:
|
case GST_STATE_READY_TO_NULL:
|
||||||
break;
|
break;
|
||||||
|
@ -794,6 +798,8 @@ gst_qtdemux_loop_header (GstElement * element)
|
||||||
void
|
void
|
||||||
gst_qtdemux_add_stream (GstQTDemux * qtdemux, QtDemuxStream * stream)
|
gst_qtdemux_add_stream (GstQTDemux * qtdemux, QtDemuxStream * stream)
|
||||||
{
|
{
|
||||||
|
gchar *caps;
|
||||||
|
|
||||||
if (stream->subtype == GST_MAKE_FOURCC ('v', 'i', 'd', 'e')) {
|
if (stream->subtype == GST_MAKE_FOURCC ('v', 'i', 'd', 'e')) {
|
||||||
gchar *name = g_strdup_printf ("video_%02d", qtdemux->n_video_streams);
|
gchar *name = g_strdup_printf ("video_%02d", qtdemux->n_video_streams);
|
||||||
|
|
||||||
|
@ -839,7 +845,9 @@ gst_qtdemux_add_stream (GstQTDemux * qtdemux, QtDemuxStream * stream)
|
||||||
gst_pad_set_formats_function (stream->pad, gst_qtdemux_get_src_formats);
|
gst_pad_set_formats_function (stream->pad, gst_qtdemux_get_src_formats);
|
||||||
gst_pad_set_convert_function (stream->pad, gst_qtdemux_src_convert);
|
gst_pad_set_convert_function (stream->pad, gst_qtdemux_src_convert);
|
||||||
|
|
||||||
GST_DEBUG ("setting caps %s\n", gst_caps_to_string (stream->caps));
|
caps = gst_caps_to_string (stream->caps);
|
||||||
|
GST_DEBUG ("setting caps %s", caps);
|
||||||
|
g_free (caps);
|
||||||
gst_pad_set_explicit_caps (stream->pad, stream->caps);
|
gst_pad_set_explicit_caps (stream->pad, stream->caps);
|
||||||
|
|
||||||
GST_DEBUG ("adding pad %s %p to qtdemux %p",
|
GST_DEBUG ("adding pad %s %p to qtdemux %p",
|
||||||
|
|
Loading…
Reference in a new issue