From: Scott Wheeler Date: Thu, 2 Sep 2004 02:48:46 +0000 (+0000) Subject: pre-C99 fixes X-Git-Tag: BRANCH-GSTREAMER-0_8-ROOT~653 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=abf9990e252249e2b7f88e1957b79a367bf0d965;p=platform%2Fupstream%2Fgst-plugins-base.git pre-C99 fixes Original commit message from CVS: pre-C99 fixes --- diff --git a/ext/theora/theoradec.c b/ext/theora/theoradec.c index ced2825f2..15aed8225 100644 --- a/ext/theora/theoradec.c +++ b/ext/theora/theoradec.c @@ -392,6 +392,7 @@ theora_dec_src_event (GstPad * pad, GstEvent * event) switch (GST_EVENT_TYPE (event)) { case GST_EVENT_SEEK:{ guint64 value; + GstEvent *real_seek; /* we have to ask our peer to seek to time here as we know * nothing about how to generate a granulepos from the src @@ -406,7 +407,7 @@ theora_dec_src_event (GstPad * pad, GstEvent * event) goto error; /* then seek with time on the peer */ - GstEvent *real_seek = gst_event_new_seek ( + real_seek = gst_event_new_seek ( (GST_EVENT_SEEK_TYPE (event) & ~GST_SEEK_FORMAT_MASK) | format, value); diff --git a/ext/vorbis/vorbisparse.c b/ext/vorbis/vorbisparse.c index 63e5a359f..95e6970f7 100644 --- a/ext/vorbis/vorbisparse.c +++ b/ext/vorbis/vorbisparse.c @@ -103,6 +103,9 @@ static void vorbis_parse_set_header_on_caps (GstVorbisParse * parse, GstCaps * caps) { GstBuffer *buf1, *buf2, *buf3; + GstStructure *structure; + GValue list = { 0 }; + GValue value = { 0 }; g_assert (parse); g_assert (parse->streamheader); @@ -115,9 +118,7 @@ vorbis_parse_set_header_on_caps (GstVorbisParse * parse, GstCaps * caps) buf3 = parse->streamheader->next->next->data; g_assert (buf3); - GstStructure *structure = gst_caps_get_structure (caps, 0); - GValue list = { 0 }; - GValue value = { 0 }; + structure = gst_caps_get_structure (caps, 0); /* mark buffers */ GST_BUFFER_FLAG_SET (buf1, GST_BUFFER_IN_CAPS);