Commit 59e9d8b3 authored by Frank Scholz's avatar Frank Scholz
Browse files

small fix in the renderer part and more log-output

parent 5a87d809
import platform
__version_info__ = (0,0,3)
__version_info__ = (0,0,4)
__version__ = '%d.%d.%d' % (__version_info__[0],__version_info__[1],__version_info__[2],)
......@@ -26,7 +26,7 @@ class Cadre(log.Loggable):
self.canvas = Canvas(fullscreen)
config = {}
config['logmode'] = 'error'
config['logmode'] = 'warning'
config['controlpoint'] = 'yes'
louie.connect(self.media_server_found, 'Coherence.UPnP.ControlPoint.MediaServer.detected', louie.Any)
......
......@@ -277,7 +277,7 @@ class PictureRenderer(log.Loggable):
return failure.Failure(errorCode(718))
if Unit in ['TRACK_NR']:
if self.playcontainer == None:
NextURI = self.server.av_transport_server.get_variable(InstanceID, 'NextAVTransportURI').value
NextURI = self.server.av_transport_server.get_variable('NextAVTransportURI').value
if NextURI != '':
self.server.av_transport_server.set_variable(InstanceID, 'TransportState', 'TRANSITIONING')
NextURIMetaData = self.server.av_transport_server.get_variable('NextAVTransportURIMetaData').value
......
......@@ -8,6 +8,8 @@ import os
# Twisted
from twisted.internet import reactor
from coherence import log
# Clutter
import clutter
from clutter import cogl
......@@ -87,7 +89,9 @@ class TextureReflection (clutter.Clone):
cogl.pop_matrix()
class Canvas(object):
class Canvas(log.Loggable):
logCategory = 'canvas'
def __init__(self, fullscreen=1):
self.fullscreen = fullscreen
......@@ -134,11 +138,13 @@ class Canvas(object):
def show_image(self,image,title=''):
#FIXME - we have the image as data already, there has to be
# a better way to get it into the texture
self.warning("show image %r" % title)
from tempfile import mkstemp
fp,filename = mkstemp()
os.write(fp,image)
os.close(fp)
#self.texture.set_load_async(True)
self.warning("loading image from file %r" % filename)
self.texture.set_from_file(filename=filename)
self.set_title(title)
os.unlink(filename)
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment