changeset 10696:73702d2f93ab

1000l. The vcd api changed and nobody updated the gui..
author alex
date Mon, 25 Aug 2003 21:33:39 +0000
parents 879ce4016b34
children f0cddd635519
files Gui/interface.c
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Gui/interface.c	Mon Aug 25 18:13:51 2003 +0000
+++ b/Gui/interface.c	Mon Aug 25 21:33:39 2003 +0000
@@ -580,9 +580,15 @@
 	  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;
 	       }