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

ib subversion at mplayerhq.hu
Mon Mar 21 20:33:22 CET 2011


Author: ib
Date: Mon Mar 21 20:33:22 2011
New Revision: 33093

Log:
Initialize guiIntfStruct.VCDTracks.

The check for stream->priv has become unnecessary.
The initialization also provides for a stream_control() failure.

Modified:
   trunk/gui/interface.c

Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c	Mon Mar 21 20:21:32 2011	(r33092)
+++ trunk/gui/interface.c	Mon Mar 21 20:33:22 2011	(r33093)
@@ -696,10 +696,8 @@ int guiGetEvent(int type, void *arg)
 
 #ifdef CONFIG_VCD
         case STREAMTYPE_VCD:
-            if (!stream->priv)
-                guiIntfStruct.VCDTracks = 0;
-            else
-                stream_control(stream, STREAM_CTRL_GET_NUM_CHAPTERS, &guiIntfStruct.VCDTracks);
+            guiIntfStruct.VCDTracks = 0;
+            stream_control(stream, STREAM_CTRL_GET_NUM_CHAPTERS, &guiIntfStruct.VCDTracks);
             break;
 #endif
 


More information about the MPlayer-cvslog mailing list