From 0fc1e3cd3f67700bb4f3f684908c9a59749d7dba Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 25 Aug 2003 21:33:39 +0000 Subject: [PATCH] 1000l. The vcd api changed and nobody updated the gui.. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10697 b3059339-0415-0410-9bf9-f77b7e298cf2 --- Gui/interface.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Gui/interface.c b/Gui/interface.c index 2ef5945fc6..8f4348c3a8 100644 --- a/Gui/interface.c +++ b/Gui/interface.c @@ -580,9 +580,15 @@ int guiGetEvent( int type,char * arg ) case STREAMTYPE_VCD: { int i; + + if (!stream->priv) + { + guiIntfStruct.VCDTracks=0; + break; + } for ( i=1;i < 100;i++ ) - if ( vcd_seek_to_track( stream->fd,i ) < 0 ) break; - vcd_seek_to_track( stream->fd,vcd_track ); + if ( vcd_seek_to_track( stream->priv,i ) < 0 ) break; + vcd_seek_to_track( stream->priv,vcd_track ); guiIntfStruct.VCDTracks=--i; break; }