changeset 5667:fd0a2f189e80

fix dvd pause. 10l
author pontscho
date Wed, 17 Apr 2002 21:38:21 +0000
parents 685df37d2c80
children 978c6f78022e
files Gui/mplayer/mw.h
diffstat 1 files changed, 12 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/Gui/mplayer/mw.h	Wed Apr 17 21:28:51 2002 +0000
+++ b/Gui/mplayer/mw.h	Wed Apr 17 21:38:21 2002 +0000
@@ -235,12 +235,18 @@
                break;
 #ifdef USE_DVDREAD
           case STREAMTYPE_DVD:
-	       if ( !dvd_device ) dvd_device=DEFAULT_DVD_DEVICE;
-               guiSetFilename( guiIntfStruct.Filename,dvd_device );
-	       dvd_title=guiIntfStruct.DVD.current_title;
-	       dvd_angle=guiIntfStruct.DVD.current_angle;
-               dvd_chapter=guiIntfStruct.DVD.current_chapter;
-               guiIntfStruct.DVDChanged=1;
+	       if ( !dvd_device ) 
+	        {
+	         dvd_device=DEFAULT_DVD_DEVICE;
+                 guiSetFilename( guiIntfStruct.Filename,dvd_device );
+		} 
+	       if ( guiIntfStruct.Playing != 2 )
+	        {
+	         dvd_title=guiIntfStruct.DVD.current_title;
+	         dvd_angle=guiIntfStruct.DVD.current_angle;
+                 dvd_chapter=guiIntfStruct.DVD.current_chapter;
+                 guiIntfStruct.DVDChanged=1;
+		} 
                break;
 #endif
          }