diff 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
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