[vdr] VDR timer + mplayer = VDR crash. Please fix!

Anssi Hannula anssi.hannula at gmail.com
Thu Jun 7 22:47:19 CEST 2007

VDR User wrote:
> On 6/6/07, Anssi Hannula <anssi.hannula at gmail.com> wrote:
>> VDR User wrote:
>>> If a timer is triggered while the mplayer plugin is in use, VDR
>>> crashes.  This has happened to me about a zillion times now and I'm
>>> hoping somebody will fix this!  You can use the mplayer plugin after a
>>> timer is started no problem.  Correct me if I'm wrong but mplayer
>>> should never have to take control of the tuner in the first place
>>> since it's not required to play a media file.
>>> Free booze to anyone who can fix this incredibly annoying problem once
>>> and for all!!
>> This could be related to the fact that when mplayer-plugin forks mplayer
>> from vdr, the /dev/dvb/adapter* file descriptors are copied as well and
>> are not closed.
> Thanks for such a quick reply Anssi!  Is that an easy thing to fix?

Attached is a patch for mplayer plugin which closes file descriptors 
(except 0, 1, 2) when forking mplayer script.

Anssi Hannula
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mp3-closefd.patch
Type: text/x-patch
Size: 759 bytes
Desc: not available
Url : http://www.linuxtv.org/pipermail/vdr/attachments/20070607/0fef044d/attachment.bin 

More information about the vdr mailing list