Skip to content

Commit

Permalink
log an error if somehow we don't have any valid colorspaces - because…
Browse files Browse the repository at this point in the history
… things are about to get ugly very fast...

git-svn-id: https://xpra.org/svn/Xpra/trunk@4100 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Aug 8, 2013
1 parent 671c102 commit 3d94029
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/xpra/codecs/dec_avcodec/decoder.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ def init_colorspaces():
ENUM_TO_FORMAT[av_enum] = pix_fmt
COLORSPACES.append(pix_fmt)
debug("colorspaces supported by avcodec %s: %s", get_version(), COLORSPACES)
if len(COLORSPACES)==0:
error("avcodec installation problem: no colorspaces found!")

def get_colorspaces():
init_colorspaces()
Expand Down

0 comments on commit 3d94029

Please sign in to comment.