[Mplayer-advusers] Fw: [MPlayer-users] libmpdemux/tv.c, channel switching bug
    Attila Kinali 
    kinali at gmx.net
       
    Wed May  1 18:04:08 CEST 2002
    
    
  
Hi,
Looks like another lost patch
		Attila Kinali
Begin forwarded message:
Date: Wed, 1 May 2002 17:55:26 +0200
From: Jürgen Appel <jappel at linux01.gwdg.de>
To: mplayer-users at mplayerhq.hu
Subject: [MPlayer-users] libmpdemux/tv.c, channel switching bug
[Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
A while ago I discovered a bug in the tv-viewing-Module.
I sent a patch to mplayer-dev-eng at mplayerhq.hu but since this change 
still has not found its way into the current version, I think, it might 
be wise to send it again.
There is a typo in libmpdemux/tv.c causing channel switching to behave 
strange. The following patch should fix it.
Greetings
	Jürgen
- --- MPlayer-20020501/libmpdemux/tv.c.old	Wed May  1 17:35:55 2002
+++ MPlayer-20020501/libmpdemux/tv.c	Wed May  1 17:36:42 2002
@@ -509,7 +509,7 @@
     {
 	if (tvh->channel-1 >= 0)
 	{
- -	    cl = tvh->chanlist_s[tvh->channel--];
+	    cl = tvh->chanlist_s[--tvh->channel];
 	    mp_msg(MSGT_TV, MSGL_INFO, "Selected channel: %s (freq: %.3f)\n",
 		cl.name, (float)cl.freq/1000);
 	    tv_set_freq(tvh, (unsigned long)(((float)cl.freq/1000)*16));
@@ -520,7 +520,7 @@
     {
 	if (tvh->channel+1 < chanlists[tvh->chanlist].count)
 	{
- -	    cl = tvh->chanlist_s[tvh->channel++];
+	    cl = tvh->chanlist_s[++tvh->channel];
 	    mp_msg(MSGT_TV, MSGL_INFO, "Selected channel: %s (freq: %.3f)\n",
 		cl.name, (float)cl.freq/1000);
 	    tv_set_freq(tvh, (unsigned long)(((float)cl.freq/1000)*16));
- -- 
GPG key: 
http://pgpkeys.mit.edu:11371/pks/lookup?op=get&search=jappel%40linux01.gwdg.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAjzQD/IACgkQ7h8HhBg+h9Wm0ACfc8Z9Rv6AQlZafpau7JWKBOOM
r4kAnAzpXvbQrK2q+Y4neMpvDAYuDuY+
=IQ2p
-----END PGP SIGNATURE-----
_______________________________________________
RTFM!!!  http://www.MPlayerHQ.hu/DOCS
Search:  http://www.MPlayerHQ.hu/cgi-bin/htsearch
http://mplayerhq.hu/mailman/listinfo/mplayer-users
-- 
Israel, where the first genocide of this century takes place.
    
    
More information about the MPlayer-advusers
mailing list