]> git.sesse.net Git - casparcg/commitdiff
[video_channel] Reverted behavior which effectively caused an increased pipeline...
authorHelge Norberg <helge.norberg@svt.se>
Mon, 3 Oct 2016 15:58:58 +0000 (17:58 +0200)
committerHelge Norberg <helge.norberg@svt.se>
Mon, 3 Oct 2016 15:58:58 +0000 (17:58 +0200)
core/video_channel.cpp

index 445d612c9eb836f225af9960ef3deedbd5c5d9fe..8ee1992dae68186dcb434863fdb6f9dd36deb2a3 100644 (file)
@@ -74,7 +74,7 @@ struct video_channel::impl final
        std::future<void>                                                                       output_ready_for_frame_ = make_ready_future();
        spl::shared_ptr<image_mixer>                                            image_mixer_;
        caspar::core::mixer                                                                     mixer_;
-       caspar::core::stage                                                                     stage_; 
+       caspar::core::stage                                                                     stage_;
 
        executor                                                                                        executor_                               { L"video_channel " + boost::lexical_cast<std::wstring>(index_) };
 public:
@@ -152,22 +152,22 @@ public:
 
                        auto format_desc        = video_format_desc();
                        auto channel_layout = audio_channel_layout();
-                       
+
                        caspar::timer frame_timer;
 
                        // Produce
-                       
+
                        auto stage_frames = stage_(format_desc);
-                       
+
                        // Mix
-                       
+
                        auto mixed_frame  = mixer_(std::move(stage_frames), format_desc, channel_layout);
-                       
+
                        // Consume
 
-                       output_ready_for_frame_.get();
                        output_ready_for_frame_ = output_(std::move(mixed_frame), format_desc, channel_layout);
-               
+                       output_ready_for_frame_.get();
+
                        auto frame_time = frame_timer.elapsed()*format_desc.fps*0.5;
                        graph_->set_value("tick-time", frame_time);
 
@@ -182,7 +182,7 @@ public:
                if (executor_.is_running())
                        executor_.begin_invoke([=]{tick();});
        }
-                       
+
        std::wstring print() const
        {
                return L"video_channel[" + boost::lexical_cast<std::wstring>(index_) + L"|" +  video_format_desc().name + L"]";
@@ -206,8 +206,8 @@ public:
                info.add_child(L"stage", stage_info.get());
                info.add_child(L"mixer", mixer_info.get());
                info.add_child(L"output", output_info.get());
-   
-               return info;                       
+
+               return info;
        }
 
        boost::property_tree::wptree delay_info() const