Stephen Rowles wrote:
> Stephen Rowles wrote:
>> Hi all,
>>
>> I made the mistake of buying a Hauppauge Nova-T usb stick. It would
>> appear that the driver doesn't work property, and I guess people are not
>> reading the linuxtv-dvb mailing list, or don't know how to fix the
>> driver problems :(
>>
>> Sometimes it just stops working, and the USB stick needs to be unplugged
>> and replugged to make it work, or the module needs to be removed and
>> reinserted from the kernel.
>>
>> What I would like to do is modify the way freevo works so that it always
>> removes and re-inserts the module, with a small sleep between the 2.
>>
>> Could anyone point me in the right direction in the freevo code of where
>> to start.
> Reply to my own post, bad I know :)
>
> I've modified /usr/lib/python2.4/site-packages/freevo/tv/plugins/xine.py
> (I use xine to watch TV).
>
> I changed line 125 in the def Play method to call os.system("rmmod
> dvb_usb_dib0700") to remove the module, then later in the method
> os.system("modprobe dvb_usb_dib0700") before the actualy xine command is
> issued.
>
> However it hasn't actually done anything :)
>
> Is there another step I need to do, compiling the code? is python real
> time interpreted or will I need to restart freevo before I can see it work?
You need to restart freevo.
> Also, any comment on if I've done this in the right place?
video/videoitem.py is a better place, as this module calls the other players
In the rel-1 branch (see
http://sourceforge.net/tracker/index.php?func=detail&group_id=46652&atid=446898&aid=1602956,
http://freevo.sourceforge.net/cgi-bin/doc/Contributing and
http://freevo.sourceforge.net/cgi-bin/doc/SVN_ChangeLogs) we have now,
thanks to Ryan Roth, VIDEO_PRE_PLAY and VIDEO_POST_PLAY which calls
commands set in the local_conf.py before and after playing a video file.
Duncan
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users