[MPlayer-cvslog] r35665 - trunk/gui/ui/actions.c

ib subversion at mplayerhq.hu
Tue Dec 11 14:48:19 CET 2012


Author: ib
Date: Tue Dec 11 14:48:19 2012
New Revision: 35665

Log:
Reset media information while changing tracks in stop mode.

Modified:
   trunk/gui/ui/actions.c

Modified: trunk/gui/ui/actions.c
==============================================================================
--- trunk/gui/ui/actions.c	Tue Dec 11 14:44:31 2012	(r35664)
+++ trunk/gui/ui/actions.c	Tue Dec 11 14:48:19 2012	(r35665)
@@ -358,8 +358,8 @@ void uiCurr(void)
  */
 void uiPrev(void)
 {
-    int stop = False;
-    plItem *prev;
+    int stop = False, unset = True;
+    plItem *prev = NULL;
 
     if (guiInfo.Playing == GUI_PAUSE)
         return;
@@ -392,7 +392,8 @@ void uiPrev(void)
                 guiInfo.Track = 1;
                 stop = True;
             }
-        }
+        } else
+            unset = False;
 
         break;
 
@@ -415,6 +416,8 @@ void uiPrev(void)
 
     if (guiInfo.Playing == GUI_PLAY)
         uiEventHandling(evPlay, 0);
+    else if (!stop && !prev && unset)
+        uiUnsetMedia(True);
 }
 
 /**
@@ -422,8 +425,8 @@ void uiPrev(void)
  */
 void uiNext(void)
 {
-    int stop = False;
-    plItem *next;
+    int stop = False, unset = True;
+    plItem *next = NULL;
 
     if (guiInfo.Playing == GUI_PAUSE)
         return;
@@ -449,7 +452,8 @@ void uiNext(void)
                 guiInfo.Chapter = guiInfo.Chapters;
                 stop = True;
             }
-        }
+        } else
+            unset = False;
 
         break;
 
@@ -472,4 +476,6 @@ void uiNext(void)
 
     if (guiInfo.Playing == GUI_PLAY)
         uiEventHandling(evPlay, 0);
+    else if (!stop && !next && unset)
+        uiUnsetMedia(True);
 }


More information about the MPlayer-cvslog mailing list