summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-14 13:41:24 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-14 13:41:24 +0000
commitde555bc28452a6ad2c5d42edd0200b1c3ad9c065 (patch)
treea73fc4c2d60055251845737379470dd259865915 /mplayer.c
parent31482783c56bdba58f23e5ff4daf0c920158f383 (diff)
downloadmpv-de555bc28452a6ad2c5d42edd0200b1c3ad9c065.tar.bz2
mpv-de555bc28452a6ad2c5d42edd0200b1c3ad9c065.tar.xz
Fix statement-before-declaration warnings.
Having a look at the gcc output before committing is a good idea btw. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20920 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/mplayer.c b/mplayer.c
index 8daf53db1b..b291fdb8cb 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -2760,6 +2760,7 @@ static int generate_video_frame(sh_video_t *sh_video, demux_stream_t *d_video)
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 @@ static int generate_video_frame(sh_video_t *sh_video, demux_stream_t *d_video)
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 fill_audio_out_buffers(void)
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 @@ if(!sh_video) {
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 @@ if(!sh_video) {
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;