Commit c9b86e0a authored by Wim Taymans's avatar Wim Taymans

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.
parent 2cac3010
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>
* 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_LOG_OBJECT (element, "Added pad %s with caps %" GST_PTR_FORMAT,
GST_PAD_NAME (pad), caps);
gst_caps_unref (caps);
if (codec_name) {
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,
codec_name, NULL);
g_free (codec_name);
}
return TRUE;
......@@ -1231,6 +1233,7 @@ fail:
gst_buffer_unref (buf);
if (sub)
gst_buffer_unref (sub);
g_free (codec_name);
g_free (stream->strh);
g_free (stream->strf.data);
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
", only got %d/%d bytes (truncated file?)", entry->offset +
avi->index_offset, GST_BUFFER_SIZE (buf), entry->size);
gst_buffer_unref (buf);
res = stream->last_flow = GST_FLOW_UNEXPECTED;
goto beach;
}
......
......@@ -423,7 +423,7 @@ id3demux_id3v2_frames_to_tag_list (ID3TagsWorking * work, guint size)
#if 1
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,
frame_size, work->hdr.frame_data + frame_hdr_size + frame_size - start,
work->hdr.frame_data + frame_hdr_size + frame_size - start,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment