build fix: declare variable at start of block
authorDavid I. Lehn <dlehn@users.sourceforge.net>
Tue, 17 Dec 2002 05:57:00 +0000 (05:57 +0000)
committerDavid I. Lehn <dlehn@users.sourceforge.net>
Tue, 17 Dec 2002 05:57:00 +0000 (05:57 +0000)
Original commit message from CVS:
build fix: declare variable at start of block

gst/udp/gstudpsrc.c

index abb4f85c996f9e63eae99813030ba00790443da1..950aa0d2596f95353f84207fc00cdbc946b4e17a 100644 (file)
@@ -233,11 +233,11 @@ gst_udpsrc_get (GstPad *pad)
       if (udpsrc->first_buf) {
        if (udpsrc->clock) {
           GstClockTime current_time;
+          GstEvent *discont;
 
           current_time = gst_clock_get_time (udpsrc->clock);
           
           GST_BUFFER_TIMESTAMP (outbuf) = current_time;
-          GstEvent *discont;
 
           discont = gst_event_new_discontinuous (FALSE, GST_FORMAT_TIME, 
                                current_time, NULL);