Update of /cvsroot/freevo/freevo/src/tv/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv27137/tv/plugins
Modified Files:
mplayer.py timeshift.py
Log Message:
Replaced the os.system('rm ...') calls with os.unlink()
Index: mplayer.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/tv/plugins/mplayer.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** mplayer.py 23 Jun 2003 20:15:25 -0000 1.8
--- mplayer.py 1 Jul 2003 20:35:58 -0000 1.9
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.9 2003/07/01 20:35:58 outlyer
+ # Replaced the os.system('rm ...') calls with os.unlink()
+ #
# Revision 1.8 2003/06/23 20:15:25 the_krow
# Trivial Fix for mplayer command line with the new runtime. Thanks to
***************
*** 230,234 ****
config.MPLAYER_USE_WID):
if DEBUG: print 'Got freevo_xwin and x11'
! os.system('rm -f /tmp/freevo.wid')
os.system('./runapp ./freevo_xwin 0 0 %s %s > /tmp/freevo.wid &' %
(osd.width, osd.height))
--- 233,237 ----
config.MPLAYER_USE_WID):
if DEBUG: print 'Got freevo_xwin and x11'
! os.unlink('/tmp/freevo.wid')
os.system('./runapp ./freevo_xwin 0 0 %s %s > /tmp/freevo.wid &' %
(osd.width, osd.height))
***************
*** 321,325 ****
time.sleep(0.05)
print 'stopped %s app' % self.mode
! os.system('rm -f /tmp/freevo.wid')
--- 324,328 ----
time.sleep(0.05)
print 'stopped %s app' % self.mode
! os.unlink('/tmp/freevo.wid')
***************
*** 405,409 ****
if DEBUG: print 'Killing mplayer'
util.killall('freevo_xwin')
! os.system('rm -f /tmp/freevo.wid')
if config.MPLAYER_DEBUG:
self.log_stdout.close()
--- 408,412 ----
if DEBUG: print 'Killing mplayer'
util.killall('freevo_xwin')
! os.unlink('/tmp/freevo.wid')
if config.MPLAYER_DEBUG:
self.log_stdout.close()
Index: timeshift.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/tv/plugins/timeshift.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** timeshift.py 23 Jun 2003 18:44:23 -0000 1.4
--- timeshift.py 1 Jul 2003 20:35:58 -0000 1.5
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.5 2003/07/01 20:35:58 outlyer
+ # Replaced the os.system('rm ...') calls with os.unlink()
+ #
# Revision 1.4 2003/06/23 18:44:23 the_krow
# Does not need Prebuffering with the new timeshifted mplayer.
***************
*** 183,187 ****
config.MPLAYER_USE_WID):
if DEBUG: print 'Got freevo_xwin and x11'
! os.system('rm -f /tmp/freevo.wid')
os.system('./runapp ./freevo_xwin 0 0 %s %s > /tmp/freevo.wid &' %
(osd.width, osd.height))
--- 186,190 ----
config.MPLAYER_USE_WID):
if DEBUG: print 'Got freevo_xwin and x11'
! os.unlink('/tmp/freevo.wid')
os.system('./runapp ./freevo_xwin 0 0 %s %s > /tmp/freevo.wid &' %
(osd.width, osd.height))
***************
*** 274,278 ****
time.sleep(0.05)
print 'stopped %s app' % self.mode
! os.system('rm -f /tmp/freevo.wid')
--- 277,281 ----
time.sleep(0.05)
print 'stopped %s app' % self.mode
! os.unlink('/tmp/freevo.wid')
***************
*** 378,382 ****
if DEBUG: print 'Killing mplayer'
util.killall('freevo_xwin')
! os.system('rm -f /tmp/freevo.wid')
if config.MPLAYER_DEBUG:
self.log_stdout.close()
--- 381,385 ----
if DEBUG: print 'Killing mplayer'
util.killall('freevo_xwin')
! os.unlink('/tmp/freevo.wid')
if config.MPLAYER_DEBUG:
self.log_stdout.close()
***************
*** 447,451 ****
self.tsinput.close()
# Remove the buffer file
! os.system('rm -f %s' % config.TIMESHIFT_BUFFER)
# Ok, we can use the OSD again.
--- 450,454 ----
self.tsinput.close()
# Remove the buffer file
! os.unlink('%s' % config.TIMESHIFT_BUFFER)
# Ok, we can use the OSD again.
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog