Update of /cvsroot/freevo/freevo/src/tv/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4816

Modified Files:
        ivtv_record.py 
Log Message:
Florian Demmer's patch for consecutive recordings and a patch to move the
snapshot to after we set the flag to idle, just to be safe.




Index: ivtv_record.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/tv/plugins/ivtv_record.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** ivtv_record.py      10 Jan 2004 04:12:02 -0000      1.19
--- ivtv_record.py      28 May 2004 01:48:22 -0000      1.20
***************
*** 11,14 ****
--- 11,18 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.20  2004/05/28 01:48:22  outlyer
+ # Florian Demmer's patch for consecutive recordings and a patch to move the
+ # snapshot to after we set the flag to idle, just to be safe.
+ #
  # Revision 1.19  2004/01/10 04:12:02  outlyer
  # Take a snapshot/thumbnail after a file is recorded...
***************
*** 117,120 ****
--- 121,125 ----
      def Record(self, rec_prog):
  
+         self.thread.save_flag.wait()
          self.thread.mode = 'record'
          self.thread.prog = rec_prog
***************
*** 137,140 ****
--- 142,147 ----
          self.mode = 'idle'
          self.mode_flag = threading.Event()
+         self.save_flag = threading.Event()
+         self.save_flag.set()
          self.prog  = ''
          self.app = None
***************
*** 189,192 ****
--- 196,200 ----
                          break
  
+                 self.save_flag.clear()
                  v_in.close()
                  v_out.close()
***************
*** 196,214 ****
                  os.remove(tv_lock_file)
  
-                 # XXX Move this into recordserver after
-                 # XXX Rob puts the event support in.
-                 from  util.videothumb import snapshot
-                 snapshot(video_save_file)
- 
- 
                  if DEBUG: print('Record_Thread::run: finished recording')
  
                  self.mode = 'idle'
!                 
              else:
                  self.mode = 'idle'
              time.sleep(0.5)
- 
- 
-     
- 
--- 204,214 ----
                  os.remove(tv_lock_file)
  
                  if DEBUG: print('Record_Thread::run: finished recording')
  
                  self.mode = 'idle'
!                 self.save_flag.set()
!                 from  util.videothumb import snapshot
!                 snapshot(video_save_file)
              else:
                  self.mode = 'idle'
              time.sleep(0.5)



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to