mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 18:35:35 +00:00
gst/avi/gstavidemux.c: Fix some leaks.
Original commit message from CVS: * gst/avi/gstavidemux.c: (gst_avi_demux_parse_stream), (gst_avi_demux_process_next_entry): Fix some leaks. * gst/id3demux/id3tags.c: (id3demux_id3v2_frames_to_tag_list): Don't use \n in debug lines.
This commit is contained in:
parent
2cac301027
commit
c9b86e0a98
3 changed files with 14 additions and 1 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
2006-07-21 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
|
* gst/avi/gstavidemux.c: (gst_avi_demux_parse_stream),
|
||||||
|
(gst_avi_demux_process_next_entry):
|
||||||
|
Fix some leaks.
|
||||||
|
|
||||||
|
* gst/id3demux/id3tags.c: (id3demux_id3v2_frames_to_tag_list):
|
||||||
|
Don't use \n in debug lines.
|
||||||
|
|
||||||
2006-07-20 Stefan Kost <ensonic@users.sf.net>
|
2006-07-20 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
* docs/plugins/gst-plugins-good-plugins-docs.sgml:
|
* docs/plugins/gst-plugins-good-plugins-docs.sgml:
|
||||||
|
|
|
@ -1210,6 +1210,7 @@ gst_avi_demux_parse_stream (GstElement * element, GstBuffer * buf)
|
||||||
gst_element_add_pad (GST_ELEMENT (avi), pad);
|
gst_element_add_pad (GST_ELEMENT (avi), pad);
|
||||||
GST_LOG_OBJECT (element, "Added pad %s with caps %" GST_PTR_FORMAT,
|
GST_LOG_OBJECT (element, "Added pad %s with caps %" GST_PTR_FORMAT,
|
||||||
GST_PAD_NAME (pad), caps);
|
GST_PAD_NAME (pad), caps);
|
||||||
|
gst_caps_unref (caps);
|
||||||
|
|
||||||
if (codec_name) {
|
if (codec_name) {
|
||||||
if (!stream->taglist)
|
if (!stream->taglist)
|
||||||
|
@ -1219,6 +1220,7 @@ gst_avi_demux_parse_stream (GstElement * element, GstBuffer * buf)
|
||||||
|
|
||||||
gst_tag_list_add (stream->taglist, GST_TAG_MERGE_APPEND, tag_name,
|
gst_tag_list_add (stream->taglist, GST_TAG_MERGE_APPEND, tag_name,
|
||||||
codec_name, NULL);
|
codec_name, NULL);
|
||||||
|
g_free (codec_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
@ -1231,6 +1233,7 @@ fail:
|
||||||
gst_buffer_unref (buf);
|
gst_buffer_unref (buf);
|
||||||
if (sub)
|
if (sub)
|
||||||
gst_buffer_unref (sub);
|
gst_buffer_unref (sub);
|
||||||
|
g_free (codec_name);
|
||||||
g_free (stream->strh);
|
g_free (stream->strh);
|
||||||
g_free (stream->strf.data);
|
g_free (stream->strf.data);
|
||||||
g_free (stream->name);
|
g_free (stream->name);
|
||||||
|
@ -2552,6 +2555,7 @@ gst_avi_demux_process_next_entry (GstAviDemux * avi)
|
||||||
GST_WARNING_OBJECT (avi, "Short read at offset %" G_GUINT64_FORMAT
|
GST_WARNING_OBJECT (avi, "Short read at offset %" G_GUINT64_FORMAT
|
||||||
", only got %d/%d bytes (truncated file?)", entry->offset +
|
", only got %d/%d bytes (truncated file?)", entry->offset +
|
||||||
avi->index_offset, GST_BUFFER_SIZE (buf), entry->size);
|
avi->index_offset, GST_BUFFER_SIZE (buf), entry->size);
|
||||||
|
gst_buffer_unref (buf);
|
||||||
res = stream->last_flow = GST_FLOW_UNEXPECTED;
|
res = stream->last_flow = GST_FLOW_UNEXPECTED;
|
||||||
goto beach;
|
goto beach;
|
||||||
}
|
}
|
||||||
|
|
|
@ -423,7 +423,7 @@ id3demux_id3v2_frames_to_tag_list (ID3TagsWorking * work, guint size)
|
||||||
|
|
||||||
#if 1
|
#if 1
|
||||||
GST_LOG
|
GST_LOG
|
||||||
("Frame @ %d (0x%02x) id %s size %d, next=%d (0x%02x) obsolete=%d\n",
|
("Frame @ %d (0x%02x) id %s size %d, next=%d (0x%02x) obsolete=%d",
|
||||||
work->hdr.frame_data - start, work->hdr.frame_data - start, frame_id,
|
work->hdr.frame_data - start, work->hdr.frame_data - start, frame_id,
|
||||||
frame_size, work->hdr.frame_data + frame_hdr_size + frame_size - start,
|
frame_size, work->hdr.frame_data + frame_hdr_size + frame_size - start,
|
||||||
work->hdr.frame_data + frame_hdr_size + frame_size - start,
|
work->hdr.frame_data + frame_hdr_size + frame_size - start,
|
||||||
|
|
Loading…
Reference in a new issue