[MPlayer-dev-eng] [PATCH] dvb input fixes

Nico nsabbi at libero.it
Sun Sep 7 00:36:01 CEST 2003



Arpi wrote:

>hmm
>
>  
>
>> if(priv->is_on) //the fds are already open and we have to stop the demuxers
>>        {
>>                dvb_demux_stop(priv->demux_fd[0]);
>>                dvb_demux_stop(priv->demux_fd[1]);
>>                priv->retry = 1;
>>                while(dvb_streaming_read(stream, buf, 4096) > 0);       
>>//empty both the stream's and driver's
>> buffers
>>                cache_uninit(stream);
>>    
>>
>
>if you're calling cache_uninit(), then the previous line is unneeded, to
>drop cached data.
>  
>
the drivers' buffer must be emptied, or the next stream will have old 
(and tainting) data

>  
>
>>is it  the wrong place?
>>    
>>
>
>probably it would be cleaner to call from mplayer.c, just before the goto to
>the cache re-init.
>
>  
>
tomorrow I will post the updated patch, removing cosmetics

>
>A'rpi / Astral & ESP-team
>
>--
>Developer of MPlayer G2, the Movie Framework for all - http://www.MPlayerHQ.hu
>
>_______________________________________________
>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