[MPlayer-cvslog] r35657 - trunk/gui/interface.c
ib
subversion at mplayerhq.hu
Mon Dec 10 15:04:47 CET 2012
Author: ib
Date: Mon Dec 10 15:04:47 2012
New Revision: 35657
Log:
Reset media information for CD/VCD/DVD after playback.
Only do so if the current track isn't the first one.
Modified:
trunk/gui/interface.c
Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c Mon Dec 10 14:57:53 2012 (r35656)
+++ trunk/gui/interface.c Mon Dec 10 15:04:47 2012 (r35657)
@@ -846,12 +846,16 @@ int gui(int what, void *data)
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;
More information about the MPlayer-cvslog
mailing list