[Mplayer-cvslog] CVS: main/Gui/mplayer/gtk pl.c,1.15,1.16
Zoltan Ponekker
pontscho at mplayerhq.hu
Thu Apr 3 14:09:47 CEST 2003
Update of /cvsroot/mplayer/main/Gui/mplayer/gtk
In directory mail:/var/tmp.root/cvs-serv20106/mplayer/gtk
Modified Files:
pl.c
Log Message:
fix dvd, vcd playing, compiling, and add one small playlist patch
Index: pl.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/gtk/pl.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- pl.c 2 Jan 2003 15:48:29 -0000 1.15
+++ pl.c 3 Apr 2003 12:09:44 -0000 1.16
@@ -234,17 +234,19 @@
break;
case 2: // remove
{
- int i; int c=0;
+ int i; int j; int c=0;
gtk_signal_handler_block( GTK_OBJECT( CLSelected ),sigSel );
gtk_signal_handler_block( GTK_OBJECT( CLSelected ),sigUnsel );
gtk_clist_freeze( GTK_CLIST( CLSelected ) );
- for ( i=0;i<NrOfSelected;i++ )
+ for ( i=0;i<NrOfSelected-c;i++ )
if ( CLListSelected[i] )
{
gtk_clist_remove( GTK_CLIST( CLSelected ),i - c );
c++;
+ for ( j=i;j<NrOfSelected-c;j++ )
+ CLListSelected[i] = CLListSelected[i+1];
}
NrOfSelected-=c;
gtk_clist_thaw( GTK_CLIST( CLSelected ) );
More information about the MPlayer-cvslog
mailing list