[MPlayer-users] libmpdemux/tv.c, channel switching bug

Jürgen Appel jappel at linux01.gwdg.de
Wed May 1 18:03:02 CEST 2002


-----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-----




More information about the MPlayer-users mailing list