[MPlayer-cvslog] r33088 - trunk/gui/interface.c

ib subversion at mplayerhq.hu
Mon Mar 21 13:35:38 CET 2011


Author: ib
Date: Mon Mar 21 13:35:38 2011
New Revision: 33088

Log:
Replace vcd_seek_to_track() by stream_control().

The call with variable vcd_track is pointless and has been removed.

Modified:
   trunk/gui/interface.c

Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c	Mon Mar 21 12:59:02 2011	(r33087)
+++ trunk/gui/interface.c	Mon Mar 21 13:35:38 2011	(r33088)
@@ -52,8 +52,6 @@
 #include "stream/stream_dvd.h"
 #endif
 
-int vcd_seek_to_track(void *vcd, int track);
-
 guiInterface_t guiIntfStruct;
 
 int guiWinID = -1;
@@ -698,23 +696,11 @@ int guiGetEvent(int type, void *arg)
 
 #ifdef CONFIG_VCD
         case STREAMTYPE_VCD:
-        {
-            int i;
-
-            if (!stream->priv) {
+            if (!stream->priv)
                 guiIntfStruct.VCDTracks = 0;
-                break;
-            }
-
-            for (i = 1; i < 100; i++)
-                if (vcd_seek_to_track(stream->priv, i) < 0)
-                    break;
-
-            vcd_seek_to_track(stream->priv, vcd_track);
-            guiIntfStruct.VCDTracks = --i;
-
+            else
+                stream_control(stream, STREAM_CTRL_GET_NUM_CHAPTERS, &guiIntfStruct.VCDTracks);
             break;
-        }
 #endif
 
         default:


More information about the MPlayer-cvslog mailing list