Skip to content

Commit

Permalink
ensure we can call get_info before init_context without crashing!
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@4809 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Nov 28, 2013
1 parent fbaa20c commit 7f74e51
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/xpra/codecs/csc_swscale/colorspace_converter.pyx
Expand Up @@ -289,10 +289,12 @@ cdef class ColorspaceConverter:
"frames" : self.frames,
"src_width" : self.src_width,
"src_height": self.src_height,
"src_format": self.src_format,
"dst_width" : self.dst_width,
"dst_height": self.dst_height,
"dst_format": self.dst_format}
"dst_height": self.dst_height}
if self.src_format:
info["src_format"] = self.src_format
if self.dst_format:
info["dst_format"] = self.dst_format
if self.frames>0 and self.time>0:
pps = float(self.src_width) * float(self.src_height) * float(self.frames) / self.time
info["total_time_ms"] = int(self.time*1000.0)
Expand Down

0 comments on commit 7f74e51

Please sign in to comment.