changeset 34777:9b8a830767f2

Fix dvdnav case to not leave "flush" uninitialized.
author reimar
date Sun, 15 Apr 2012 21:02:59 +0000
parents 0da7375c9b61
children 48310248f892
files mplayer.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sun Apr 15 19:19:00 2012 +0000
+++ b/mplayer.c	Sun Apr 15 21:02:59 2012 +0000
@@ -2441,14 +2441,14 @@
                 if (mpctx->d_audio)
                     mpctx->d_audio->eof = 0;
                 mpctx->stream->eof = 0;
-            } else
+            }
 #endif
             flush = in_size < 0 && mpctx->d_video->eof;
             if (flush) {
                 start = NULL;
                 in_size = 0;
             }
-            if (in_size < 0)
+            if (mpctx->stream->type != STREAMTYPE_DVDNAV && in_size < 0)
                 return -1;
             if (in_size > max_framesize)
                 max_framesize = in_size;  // stats