summaryrefslogtreecommitdiffstats
path: root/gst/id3demux
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2006-03-21 14:53:36 +0000
committerEdward Hervey <bilboed@bilboed.com>2006-03-21 14:53:36 +0000
commit0186335dd2c27f77180920d010fa4de1eafc73fa (patch)
tree5df0469659677c8d027413bf1f6aaad0a2b3e659 /gst/id3demux
parent0465903a85e3865eb064a79d19d1984b4e5da23f (diff)
gst/: gcc 4.1 unreferenced pointer fixes.
Original commit message from CVS: * gst/apetag/gsttagdemux.c: (gst_tag_demux_reset): * gst/id3demux/gstid3demux.c: (gst_id3demux_reset): * gst/wavparse/gstwavparse.c: (gst_wavparse_create_sourcepad), (gst_wavparse_stream_headers), (gst_wavparse_send_event), (gst_wavparse_change_state): gcc 4.1 unreferenced pointer fixes.
Diffstat (limited to 'gst/id3demux')
-rw-r--r--gst/id3demux/gstid3demux.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gst/id3demux/gstid3demux.c b/gst/id3demux/gstid3demux.c
index 6b7f073e..3d7ee5ba 100644
--- a/gst/id3demux/gstid3demux.c
+++ b/gst/id3demux/gstid3demux.c
@@ -182,14 +182,17 @@ gst_id3demux_class_init (GstID3DemuxClass * klass)
static void
gst_id3demux_reset (GstID3Demux * id3demux)
{
+ GstBuffer **buffer_p = &id3demux->collect;
+ GstCaps **caps_p = &id3demux->src_caps;
+
id3demux->strip_start = 0;
id3demux->strip_end = 0;
id3demux->upstream_size = -1;
id3demux->state = GST_ID3DEMUX_READID3V2;
id3demux->send_tag_event = FALSE;
- gst_buffer_replace (&(id3demux->collect), NULL);
- gst_caps_replace (&(id3demux->src_caps), NULL);
+ gst_buffer_replace (buffer_p, NULL);
+ gst_caps_replace (caps_p, NULL);
gst_id3demux_remove_srcpad (id3demux);