changeset 35793:c6ffe6a4c1e5

Compact code. Patch by Hans-Dieter Kosch, hdkosch kabelbw de.
author ib
date Fri, 25 Jan 2013 16:03:39 +0000
parents 97a4f5644b74
children 153a4c76e291
files gui/ui/actions.c
diffstat 1 files changed, 1 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/gui/ui/actions.c	Fri Jan 25 15:57:48 2013 +0000
+++ b/gui/ui/actions.c	Fri Jan 25 16:03:39 2013 +0000
@@ -195,27 +195,11 @@
                 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;