changeset 35563:d4a84f674401

Reset media information for CD/VCD/DVD after playback. Only do so if the current track isn't the first one.
author ib
date Mon, 10 Dec 2012 14:04:47 +0000
parents 8b3791b648c6
children 8d4a7387d592
files gui/interface.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/interface.c	Mon Dec 10 13:57:53 2012 +0000
+++ b/gui/interface.c	Mon Dec 10 14:04:47 2012 +0000
@@ -846,12 +846,16 @@
                     guiInfo.Track = 1;
                 }
             } else if (guiInfo.Playing) {
-                guiInfo.Track = (guiInfo.StreamType == STREAMTYPE_VCD ? 2 : 1);
+                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;
+                }
             }
 
             guiInfo.ElapsedTime = 0;