Skip to content

Commit

Permalink
warn if we get a colorspace change after the first frame
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@8942 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Apr 7, 2015
1 parent 0b708d9 commit a771f0f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/xpra/client/window_backing_base.py
Expand Up @@ -362,7 +362,11 @@ def paint_with_video_decoder(self, decoder_module, coding, img_data, x, y, width
log("paint_with_video_decoder: window dimensions have changed from %s to %s", (self._video_decoder.get_width(), self._video_decoder.get_height()), (enc_width, enc_height))
self.do_clean_video_decoder()
elif self._video_decoder.get_colorspace()!=input_colorspace:
log("paint_with_video_decoder: colorspace changed from %s to %s", self._video_decoder.get_colorspace(), input_colorspace)
#this should only happen on encoder restart, which means this should be the first frame:
l = log
if options.get("frame", 0)>1:
l = log.warn
l("paint_with_video_decoder: colorspace changed from %s to %s", self._video_decoder.get_colorspace(), input_colorspace)
self.do_clean_video_decoder()
elif options.get("frame")==0:
log("paint_with_video_decoder: first frame of new stream")
Expand Down

0 comments on commit a771f0f

Please sign in to comment.