[MPlayer-cvslog] r34505 - trunk/gui/ui/main.c

ib subversion at mplayerhq.hu
Thu Jan 5 13:06:03 CET 2012


Author: ib
Date: Thu Jan  5 13:06:03 2012
New Revision: 34505

Log:
Move some DVD related events.

This saves a #ifdef CONFIG_DVDREAD.

Modified:
   trunk/gui/ui/main.c

Modified: trunk/gui/ui/main.c
==============================================================================
--- trunk/gui/ui/main.c	Thu Jan  5 12:39:27 2012	(r34504)
+++ trunk/gui/ui/main.c	Thu Jan  5 13:06:03 2012	(r34505)
@@ -179,6 +179,24 @@ void uiEventHandling( int msg,float para
 	goto play;
 #endif
 #ifdef CONFIG_DVDREAD
+   case ivSetDVDSubtitle:
+        dvdsub_id=iparam;
+        goto play_dvd_2;
+        break;
+   case ivSetDVDAudio:
+        audio_id=iparam;
+        goto play_dvd_2;
+        break;
+   case ivSetDVDChapter:
+        guiInfo.Chapter=iparam;
+        goto play_dvd_2;
+        break;
+   case ivSetDVDTitle:
+        guiInfo.Track=iparam;
+        guiInfo.Chapter=1;
+        guiInfo.Angle=1;
+        goto play_dvd_2;
+        break;
    case evPlayDVD:
         guiInfo.Track=1;
         guiInfo.Chapter=1;
@@ -244,26 +262,6 @@ play:
          }
         uiPlay();
         break;
-#ifdef CONFIG_DVDREAD
-   case ivSetDVDSubtitle:
-        dvdsub_id=iparam;
-        goto play_dvd_2;
-        break;
-   case ivSetDVDAudio:
-        audio_id=iparam;
-        goto play_dvd_2;
-        break;
-   case ivSetDVDChapter:
-        guiInfo.Chapter=iparam;
-        goto play_dvd_2;
-        break;
-   case ivSetDVDTitle:
-        guiInfo.Track=iparam;
-	guiInfo.Chapter=1;
-	guiInfo.Angle=1;
-        goto play_dvd_2;
-        break;
-#endif
 
    case evPause:
    case evPauseSwitchToPlay:


More information about the MPlayer-cvslog mailing list