changeset 33006:66d908462d76

Initialize guiIntfStruct.VCDTracks. The check for stream->priv has become unnecessary. The initialization also provides for a stream_control() failure.
author ib
date Mon, 21 Mar 2011 19:33:22 +0000
parents d116366f3523
children 027481d941c0
files gui/interface.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/gui/interface.c	Mon Mar 21 19:21:32 2011 +0000
+++ b/gui/interface.c	Mon Mar 21 19:33:22 2011 +0000
@@ -696,10 +696,8 @@
 
 #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