Mercurial > mplayer.hg
changeset 17681:0acfff9388f6
DVB channels cycling; patch by Ben Zores ben p geekbox d org
author | nicodvb |
---|---|
date | Fri, 24 Feb 2006 22:46:23 +0000 |
parents | 786628f8db88 |
children | b865581db0d5 |
files | libmpdemux/dvbin.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/dvbin.c Fri Feb 24 22:18:45 2006 +0000 +++ b/libmpdemux/dvbin.c Fri Feb 24 22:46:23 2006 +0000 @@ -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);