# HG changeset patch # User ib # Date 1300736002 0 # Node ID 66d908462d76db7b0a63274e0a1f9d656d1f4921 # Parent d116366f35238af396e350635861cd7c0a365c9c Initialize guiIntfStruct.VCDTracks. The check for stream->priv has become unnecessary. The initialization also provides for a stream_control() failure. diff -r d116366f3523 -r 66d908462d76 gui/interface.c --- 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