Mercurial > mplayer.hg
comparison mplayer.c @ 34777:9b8a830767f2
Fix dvdnav case to not leave "flush" uninitialized.
author | reimar |
---|---|
date | Sun, 15 Apr 2012 21:02:59 +0000 |
parents | d32f75f79517 |
children | 5e946a81746c |
comparison
equal
deleted
inserted
replaced
34776:0da7375c9b61 | 34777:9b8a830767f2 |
---|---|
2439 if (mpctx->d_video) | 2439 if (mpctx->d_video) |
2440 mpctx->d_video->eof = 0; | 2440 mpctx->d_video->eof = 0; |
2441 if (mpctx->d_audio) | 2441 if (mpctx->d_audio) |
2442 mpctx->d_audio->eof = 0; | 2442 mpctx->d_audio->eof = 0; |
2443 mpctx->stream->eof = 0; | 2443 mpctx->stream->eof = 0; |
2444 } else | 2444 } |
2445 #endif | 2445 #endif |
2446 flush = in_size < 0 && mpctx->d_video->eof; | 2446 flush = in_size < 0 && mpctx->d_video->eof; |
2447 if (flush) { | 2447 if (flush) { |
2448 start = NULL; | 2448 start = NULL; |
2449 in_size = 0; | 2449 in_size = 0; |
2450 } | 2450 } |
2451 if (in_size < 0) | 2451 if (mpctx->stream->type != STREAMTYPE_DVDNAV && in_size < 0) |
2452 return -1; | 2452 return -1; |
2453 if (in_size > max_framesize) | 2453 if (in_size > max_framesize) |
2454 max_framesize = in_size; // stats | 2454 max_framesize = in_size; // stats |
2455 drop_frame = check_framedrop(frame_time); | 2455 drop_frame = check_framedrop(frame_time); |
2456 current_module = "decode_video"; | 2456 current_module = "decode_video"; |