diff options
author | 2006-02-24 22:46:23 +0000 | |
---|---|---|
committer | 2006-02-24 22:46:23 +0000 | |
commit | b4c7e5cf9b542e3116c4fd2499cb851128eb91a2 (patch) | |
tree | 46ca146165d34ead0a10301cb31d6ce1e090b4f2 | |
parent | c8610ae9e29d12aadd436203336c4d8ec85415d6 (diff) |
DVB channels cycling; patch by Ben Zores ben p geekbox d org
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17682 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpdemux/dvbin.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libmpdemux/dvbin.c b/libmpdemux/dvbin.c index 0351aab5a2..c633619d33 100644 --- a/libmpdemux/dvbin.c +++ b/libmpdemux/dvbin.c @@ -596,16 +596,16 @@ int dvb_step_channel(dvb_priv_t *priv, int dir) 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); |