[MPlayer-cvslog] r20920 - trunk/mplayer.c

reimar subversion at mplayerhq.hu
Tue Nov 14 14:41:25 CET 2006


Author: reimar
Date: Tue Nov 14 14:41:24 2006
New Revision: 20920

Modified:
   trunk/mplayer.c

Log:
Fix statement-before-declaration warnings.
Having a look at the gcc output before committing is a good idea btw.


Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	(original)
+++ trunk/mplayer.c	Tue Nov 14 14:41:24 2006
@@ -2760,6 +2760,7 @@
     double pts;
 
     while (1) {
+	void *decoded_frame;
 	current_module = "decode video";
 	// XXX Time used in this call is not counted in any performance
 	// timer now, OSD is not updated correctly for filter-added frames
@@ -2778,7 +2779,7 @@
 	if (pts == MP_NOPTS_VALUE)
 	    mp_msg(MSGT_CPLAYER, MSGL_ERR, "pts value from demuxer MISSING\n");
 	current_module = "decode video";
-	void *decoded_frame = decode_video(sh_video, start, in_size, 0, pts);
+	decoded_frame = decode_video(sh_video, start, in_size, 0, pts);
 	if (decoded_frame) {
 	    update_osd_msg();
 	    if (filter_video(sh_video, decoded_frame, sh_video->pts))
@@ -3009,9 +3010,9 @@
 
 int sleep_until_update(float *time_frame, float *aq_sleep_time)
 {
+    int frame_time_remaining = 0;
     current_module="calc_sleep_time";
 
-    int frame_time_remaining = 0;
     *time_frame -= GetRelativeTime(); // reset timer
 
     if (sh_audio && !d_audio->eof) {
@@ -4342,6 +4343,7 @@
     blit_frame = 0; // Don't blit if we hit EOF
     if (!correct_pts) while(1)
     {   unsigned char* start=NULL;
+	void *decoded_frame;
 	int in_size;
 	// get it!
 	current_module="video_read_frame";
@@ -4373,7 +4375,7 @@
 	current_module="decode_video";
 //	printf("Decode! %p  %d  \n",start,in_size);
 	update_osd_msg();
-	void *decoded_frame = decode_video(sh_video,start,in_size,drop_frame, sh_video->pts);
+	decoded_frame = decode_video(sh_video,start,in_size,drop_frame, sh_video->pts);
 	blit_frame = (decoded_frame && filter_video(sh_video, decoded_frame,
 						    sh_video->pts));
 	break;



More information about the MPlayer-cvslog mailing list