Skip to content

Commit

Permalink
ensure str on an uninitialized decoder does not crash!
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@4345 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Sep 18, 2013
1 parent 481df05 commit e7e6aa7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xpra/codecs/dec_avcodec/decoder.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,9 @@ cdef class Decoder:
info = {
"type" : self.get_type(),
"frames" : self.frames,
"buffers" : len(self.framewrappers),
}
if self.framewrappers:
info["buffers"] = len(self.framewrappers)
if self.colorspace:
info["colorspace"] = self.colorspace
info["actual_colorspace"] = self.get_actual_colorspace()
Expand Down

0 comments on commit e7e6aa7

Please sign in to comment.