[MPlayer-dev-eng] [PATCH] Fix -tv immediatemode with mplayer

Alban Bedel albeu at free.fr
Thu Aug 28 16:30:40 CEST 2003


Hi,

I looked at why mplayer couldn't play tv sound. From the docs to get sound
grabbed -tv immediatemode=0 is needed. However the option was inside a
#ifdef HAVE_TV_BSDBT848 black :( 10L

But then playback didn't start :( After a quick look at the code it turned
out that the tv code asume that the player will first ask for a video frame.
At init only the audio grabbing thread is fired. The video one is fired at
the first grab_frame call. But when mplayer read the first audio samples then
the audio reading code wait on the video thread wich will never start :(

Attached is a quick workaround but i fail to see why we should not start
both thread from the beginning. What is the reason for having video grabing
starting later ?

With this patch you can do
mplayer tv:// -tv adevice=/dev/dsp1:immediatemode=0:audiorate=31000
and watch tv without cable to the soundcard or use the sound filters :)
	Albeu
--

Everything is controlled by a small evil group
to which, unfortunately, no one we know belongs.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: tv.immediate.diff
Type: application/octet-stream
Size: 1440 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030828/98405f61/attachment.obj>


More information about the MPlayer-dev-eng mailing list