From: Ronald S. Bultje Date: Fri, 7 Feb 2003 21:55:43 +0000 (+0000) Subject: Will the who-ever it is that writes gcc-2.95-incompatible code please stop that?... X-Git-Tag: OSLOSUMMIT1-200303051~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2534ded87b41c99084a1d81f30ee172ca8a77893;p=platform%2Fupstream%2Fgst-plugins-base.git Will the who-ever it is that writes gcc-2.95-incompatible code please stop that? Some of us don't use C99 yet ;) Original commit message from CVS: Will the who-ever it is that writes gcc-2.95-incompatible code please stop that? Some of us don't use C99 yet ;) --- diff --git a/ext/gnomevfs/gstgnomevfssrc.c b/ext/gnomevfs/gstgnomevfssrc.c index 03f7081..f1e811b 100644 --- a/ext/gnomevfs/gstgnomevfssrc.c +++ b/ext/gnomevfs/gstgnomevfssrc.c @@ -990,9 +990,9 @@ static gboolean gst_gnomevfssrc_open_file(GstGnomeVFSSrc *src) src->size = info->size; if (info->valid_fields & GNOME_VFS_FILE_INFO_FIELDS_MIME_TYPE) { + GstCaps *caps = gst_caps_new ("gnomevfssrc", info->mime_type, NULL); GST_DEBUG (0, "got MIME type \"%s\", setting caps", info->mime_type); - GstCaps *caps = gst_caps_new ("gnomevfssrc", info->mime_type, NULL); gst_pad_try_set_caps (src->srcpad, caps); } else @@ -1113,6 +1113,7 @@ gst_gnomevfssrc_srcpad_event (GstPad *pad, GstEvent *event) case GST_EVENT_SEEK: { gint64 desired_offset; + GnomeVFSResult result; if (GST_EVENT_SEEK_FORMAT (event) != GST_FORMAT_BYTES) { gst_event_unref (event); @@ -1133,7 +1134,6 @@ gst_gnomevfssrc_srcpad_event (GstPad *pad, GstEvent *event) return FALSE; break; } - GnomeVFSResult result; result = gnome_vfs_seek(src->handle, GNOME_VFS_SEEK_START, desired_offset);