From 399c38e3985247edb1dd79c2a2a6c65d79165320 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Sun, 7 Dec 2003 22:45:23 +0000 Subject: [PATCH] gcc-2.95 nitpicking - thanks Scott Wheeler Original commit message from CVS: gcc-2.95 nitpicking - thanks Scott Wheeler --- ext/ogg/gstoggdemux.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index e0c661213c..d87f4279dc 100644 --- a/ext/ogg/gstoggdemux.c +++ b/ext/ogg/gstoggdemux.c @@ -372,7 +372,7 @@ gst_ogg_pad_remove (GstOggDemux *ogg, GstOggPad *pad) static void gst_ogg_demux_push (GstOggDemux *ogg, ogg_page* page) { - GSList *walk;; + GSList *walk; GstOggPad *cur; /* find the stream */ @@ -423,6 +423,7 @@ gst_ogg_pad_push (GstOggDemux *ogg, GstOggPad *pad) { ogg_packet packet; int ret; + GstBuffer *buf; while (TRUE) { ret = ogg_stream_packetout (&pad->stream, &packet); @@ -449,7 +450,7 @@ gst_ogg_pad_push (GstOggDemux *ogg, GstOggPad *pad) gst_element_add_pad (GST_ELEMENT (ogg), pad->pad); } /* optimization: use a bufferpool containing the ogg packet */ - GstBuffer *buf = gst_buffer_new_and_alloc (packet.bytes); + buf = gst_buffer_new_and_alloc (packet.bytes); memcpy (buf->data, packet.packet, packet.bytes); GST_BUFFER_OFFSET (buf) = pad->offset; pad->offset = GST_BUFFER_OFFSET_END (buf) = packet.granulepos; -- 2.34.1