]> git.sesse.net Git - casparcg/commitdiff
Created consumer_index counter in channel_consumer instead of using uninitialized...
authorHelge Norberg <helge.norberg@gmail.com>
Mon, 31 Mar 2014 15:36:11 +0000 (17:36 +0200)
committerHelge Norberg <helge.norberg@gmail.com>
Mon, 31 Mar 2014 15:36:11 +0000 (17:36 +0200)
core/producer/channel/channel_producer.cpp

index 9ab3e0a8840e594b1b7dffb38676d58bfc8b1dc3..e141d62c9f35d7ad52ac3d658254ab1a834e1e22 100644 (file)
@@ -53,11 +53,11 @@ class channel_consumer : public frame_consumer
        tbb::atomic<int64_t>                                                                            current_age_;\r
 \r
 public:\r
-       channel_consumer() \r
+       channel_consumer()\r
+               : consumer_index_(next_consumer_index())\r
        {\r
                is_running_ = true;\r
                current_age_ = 0;\r
-               consumer_index_ = next_consumer_index();\r
                frame_buffer_.set_capacity(3);\r
        }\r
 \r