]> git.sesse.net Git - cubemap/commitdiff
Fix a bug where Metacube streams would become inconsistent between different servers...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 20 Apr 2013 12:00:02 +0000 (14:00 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 20 Apr 2013 12:00:02 +0000 (14:00 +0200)
main.cpp

index c89ec72ff44457352c66ebb5be638a5fbc28bc66..0aa91f38becb8ab9b0d9a6cd75a6a11278e997d0 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -153,9 +153,9 @@ void create_streams(const Config &config,
                                            Stream::Encoding(stream_config.encoding));
                } else {
                        servers->set_backlog_size(stream_config.stream_id, stream_config.backlog_size);
-                       servers->set_encoding(stream_config.stream_id,
-                                             Stream::Encoding(stream_config.encoding));
                }
+               servers->set_encoding(stream_config.stream_id,
+                                     Stream::Encoding(stream_config.encoding));
                expecting_stream_ids.erase(stream_config.stream_id);
 
                if (stream_config.mark_pool != -1) {