[MPlayer-cvslog] CVS: main/libmpdemux dvbin.c,1.17,1.18

Nico Sabbi CVS syncmail at mplayerhq.hu
Fri Feb 24 23:46:26 CET 2006


CVS change done by Nico Sabbi CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv32323

Modified Files:
	dvbin.c 
Log Message:
DVB channels cycling; patch by Ben Zores ben p geekbox d org

Index: dvbin.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/dvbin.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- dvbin.c	9 Feb 2006 14:07:56 -0000	1.17
+++ dvbin.c	24 Feb 2006 22:46:23 -0000	1.18
@@ -596,16 +596,16 @@
 	if(dir == DVB_CHANNEL_HIGHER)
 	{
 		if(list->current == list->NUM_CHANNELS-1)
-			return 0;
-
-		new_current = list->current + 1;
+			new_current=0;
+		else
+			new_current = list->current + 1;
 	}
 	else
 	{
 		if(list->current == 0)
-			return 0;
-
-		new_current = list->current - 1;
+			new_current=list->NUM_CHANNELS-1;
+		else
+			new_current = list->current - 1;
 	}
 
 	return dvb_set_channel(priv, priv->card, new_current);




More information about the MPlayer-cvslog mailing list