Hi guys. Well since I'm back online after the big move its time for some cleanup.


I discovered that when recording (ivtv_record.py), only the first show after a recordserver restart would record, it was getting stuck in the 'record' state because I thought the save_flag was blocking somehow. This wasn't quite the case. The real problem was that the videothumb snapshot was raising an uncaught exeption and craching the thread, before the mode flag could be reset. This is probably the same reason people's back to back recordings were failing with the TV_RECORD_PADDING.

So, after promissing to add some more events to recordserver to support start and stop recording, I have done so. I have so far added two new events, RECORD_START and RECORD_STOP. These events are handled inside the recordserver and posted from the recording plugin (generic_record.py or ivtv_record.py). The recording plugin is also responsible for setting the prog object's filename attribute to the full path, including file extention.

The RECORD_START and RECORD_STOP events are given one argument, that is the program in question. While handling RECORD_START the lock file is set in place and the fxd file is generated. For RECORD_STOP the lock file is removed and the thumbnail for the video is generated. The videothum snapshot doesn't raise an exception while called here so I believe the problem before was thread related.

So far I have only modified the ivtv_record.py plugin but after a bit more testing I will make the same changes to generic_record.py and commit them. Someone will have to test the generic_record plugin but it should be ok. These changes also reduce some duplicated code in the two plugins. :)

-Rob




------------------------------------------------------- This SF.Net email is sponsored by: GNOME Foundation Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. GNOME Users and Developers European Conference, 28-30th June in Norway http://2004/guadec.org _______________________________________________ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to