hls-player: use deferLater
authorMarc-André <marcandre.lureau@gmail.com>
Thu, 7 Jan 2010 13:02:06 +0000 (13:02 +0000)
committerMarc-André Lureau <mlureau@flumotion.com>
Fri, 8 Jan 2010 12:37:42 +0000 (13:37 +0100)
commitb52fe78cdf100d188e60d969749eb2c67f649daf
treea295f1c70255c080df7f31bef94fd01c1cf92872
parent771f71c432fd8b2d2dd78144c0be8c52eacf7e17
hls-player: use deferLater

That should fix this exception:

--- <exception caught here> ---
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 328, in _runCallbacks
    self.result = callback(self.result, *args, **kw)
  File "/home/elmarco/bin/hls-player.py", line 313, in _playlist_updated
    if pl.has_programs():
exceptions.AttributeError: DelayedCall instance has no attribute 'has_programs'
hls-player.py