[MPlayer-dev-eng] [PATCH] dvb fix

Nico nsabbi at libero.it
Mon Aug 25 17:17:19 CEST 2003



Thanks,

I'll add it to my branch tonight.

Afair LIRC even forks(), maybe that's the reason why it crashes.


What about your A/V problems?

Nico.

David Kuehling wrote:

>Hi,
>
>tracked yet another bug with DVB input.  When zapping, uninit_player()
>is called in mplayer.c:2880 and mplayer.c:2909.  Then the code jumps
>directly to goto_open_demuxer.  This step ommits the re-initialization
>of mp_input_init.  Makes my LIRC input crash after zapping once.
>
>Fix:  call uninit_player with correct bitmask:
>
>	  uninit_player(INITED_ALL-(INITED_STREAM)-(INITED_INPUT));
>
>patch attached.
>
>David
>  
>
>------------------------------------------------------------------------
>
>? .emacs.desktop
>? audiodump.wav
>? config.h.bz2
>? dump1
>? dump2
>? dump3
>? dvb-fix1-20030825.diff
>? dvbt-berlin.mpg
>? dvbt-berlin.mpg.bz2
>? mplayer-dump1.txt.bz2
>? mplayer-dump2.txt.bz2
>? mplayer-dump3.txt.bz2
>? mplayer-dump4.txt.bz2
>? test.mpg
>Index: mplayer.c
>===================================================================
>RCS file: /cvsroot/mplayer/main/mplayer.c,v
>retrieving revision 1.722
>diff -u -r1.722 mplayer.c
>--- mplayer.c	25 Aug 2003 09:08:06 -0000	1.722
>+++ mplayer.c	25 Aug 2003 14:59:42 -0000
>@@ -2877,7 +2877,7 @@
> 			
> 		if(dvb_step_channel(priv, dir))
> 		{
>-	  		uninit_player(INITED_ALL-(INITED_STREAM));
>+	  		uninit_player(INITED_ALL-(INITED_STREAM)-(INITED_INPUT));
> 			printf("UNINIT COMPLETE\n");
> 			goto goto_open_demuxer;
> 		}
>@@ -2906,7 +2906,7 @@
> 	  {
>   		if(dvb_set_channel(priv, cmd->args[0].v.i))
> 		{
>-	  	  uninit_player(INITED_ALL-(INITED_STREAM));
>+	  	  uninit_player(INITED_ALL-(INITED_STREAM)-(INITED_INPUT));
> 		  goto goto_open_demuxer;
> 		}
> 	  }
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>MPlayer-dev-eng mailing list
>MPlayer-dev-eng at mplayerhq.hu
>http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
>  
>




More information about the MPlayer-dev-eng mailing list