--- gst/mpegstream/gstmpegparse.orig	Sat Jan 28 12:47:59 2006
+++ gst/mpegstream/gstmpegparse.c	Sat Jan 28 12:49:21 2006
@@ -459,6 +459,7 @@ static void
 gst_mpeg_parse_pad_added (GstElement * element, GstPad * pad)
 {
   GstMPEGParse *mpeg_parse;
+  GstEvent *event;
 
   if (GST_PAD_IS_SINK (pad)) {
     return;
@@ -470,7 +471,7 @@ gst_mpeg_parse_pad_added (GstElement * e
    * the current time. This is required because MPEG allows any sort
    * of order of packets, and new substreams can be found at any
    * time. */
-  GstEvent *event = gst_event_new_new_segment (FALSE,
+  event = gst_event_new_new_segment (FALSE,
       mpeg_parse->current_segment.rate,
       GST_FORMAT_TIME, mpeg_parse->current_segment.start,
       -1, mpeg_parse->current_segment.start);
@@ -1004,6 +1005,7 @@ gst_mpeg_parse_handle_src_query (GstPad 
     }
     case GST_QUERY_POSITION:
     {
+      gint64 cur;
       gst_query_parse_position (query, &format, NULL);
 
       switch (format) {
@@ -1018,8 +1020,7 @@ gst_mpeg_parse_handle_src_query (GstPad 
             goto done;
           }
 
-          gint64 cur =
-              (gint64) (mpeg_parse->current_scr) - mpeg_parse->first_scr;
+          cur = (gint64) (mpeg_parse->current_scr) - mpeg_parse->first_scr;
           src_value = MPEGTIME_TO_GSTTIME (MAX (0, cur));
           break;
       }
