changeset 35564:8d4a7387d592

Relocate and change code to set Chapter and Angle start values. Limit it to DVD.
author ib
date Mon, 10 Dec 2012 14:08:19 +0000
parents d4a84f674401
children 5f7a983fc838
files gui/interface.c
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/gui/interface.c	Mon Dec 10 14:04:47 2012 +0000
+++ b/gui/interface.c	Mon Dec 10 14:08:19 2012 +0000
@@ -848,14 +848,15 @@
             } else if (guiInfo.Playing) {
                 int first = (guiInfo.StreamType == STREAMTYPE_VCD ? 2 : 1);
 
-                if (guiInfo.Chapter)
-                    guiInfo.Chapter = 1;
-                if (guiInfo.Angle)
-                    guiInfo.Angle = 1;
                 if (guiInfo.Track != first) {
                     uiUnsetMedia();
                     guiInfo.Track = first;
                 }
+
+                if (guiInfo.StreamType == STREAMTYPE_DVD) {
+                    guiInfo.Chapter = 1;
+                    guiInfo.Angle   = 1;
+                }
             }
 
             guiInfo.ElapsedTime = 0;