diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2009-11-29 15:23:03 +0200 |
---|---|---|
committer | Yaniv Kamay <ykamay@redhat.com> | 2009-11-30 18:45:06 +0200 |
commit | 00d5bf8b958462ff68fa59bf4007543893bba9c7 (patch) | |
tree | c0304d72df4da6ec1b93b0171868a672af32ea52 /server/red_dispatcher.c | |
parent | 6c5966d8ed8ff248ca21900aaf2350aac87f68e4 (diff) | |
download | spice-00d5bf8b958462ff68fa59bf4007543893bba9c7.tar.gz spice-00d5bf8b958462ff68fa59bf4007543893bba9c7.tar.xz spice-00d5bf8b958462ff68fa59bf4007543893bba9c7.zip |
spice server: heuristic for distinguishing between "real" videos and textual streams
Diffstat (limited to 'server/red_dispatcher.c')
-rw-r--r-- | server/red_dispatcher.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/red_dispatcher.c b/server/red_dispatcher.c index f98301ac..dae33d87 100644 --- a/server/red_dispatcher.c +++ b/server/red_dispatcher.c @@ -345,7 +345,8 @@ void red_dispatcher_set_mm_time(uint32_t mm_time) static inline int calc_compression_level() { - if (streaming_video || (image_compression != IMAGE_COMPRESS_QUIC)) { + ASSERT(streaming_video != STREAM_VIDEO_INVALID); + if ((streaming_video != STREAM_VIDEO_OFF) || (image_compression != IMAGE_COMPRESS_QUIC)) { return 0; } else { return 1; |