[MPlayer-cvslog] r35887 - trunk/gui/ui/actions.c
ib
subversion at mplayerhq.hu
Fri Jan 25 17:03:39 CET 2013
Author: ib
Date: Fri Jan 25 17:03:39 2013
New Revision: 35887
Log:
Compact code.
Patch by Hans-Dieter Kosch, hdkosch kabelbw de.
Modified:
trunk/gui/ui/actions.c
Modified: trunk/gui/ui/actions.c
==============================================================================
--- trunk/gui/ui/actions.c Fri Jan 25 16:57:48 2013 (r35886)
+++ trunk/gui/ui/actions.c Fri Jan 25 17:03:39 2013 (r35887)
@@ -195,27 +195,11 @@ play:
break;
case STREAMTYPE_CDDA:
-
- if (!guiInfo.Track)
- guiInfo.Track = 1;
-
- guiInfo.NewPlay = GUI_FILE_SAME;
-
- break;
-
case STREAMTYPE_VCD:
-
- if (!guiInfo.Track)
- guiInfo.Track = 2;
-
- guiInfo.NewPlay = GUI_FILE_SAME;
-
- break;
-
case STREAMTYPE_DVD:
if (!guiInfo.Track)
- guiInfo.Track = 1;
+ guiInfo.Track = (guiInfo.StreamType == STREAMTYPE_VCD ? 2 : 1);
guiInfo.NewPlay = GUI_FILE_SAME;
More information about the MPlayer-cvslog
mailing list