]> git.sesse.net Git - casparcg/commitdiff
git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches...
authorronag <ronag@362d55ac-95cf-4e76-9f9a-cbaa9c17b72d>
Mon, 26 Mar 2012 22:22:37 +0000 (22:22 +0000)
committerronag <ronag@362d55ac-95cf-4e76-9f9a-cbaa9c17b72d>
Mon, 26 Mar 2012 22:22:37 +0000 (22:22 +0000)
modules/ffmpeg/producer/input/input.cpp

index d4b720eac8e4a9e4095ea896c1917cdd336ef6a0..41e0d1087ef4aa1e4101c26e96e729b1a38dd02f 100644 (file)
@@ -143,14 +143,15 @@ struct input::impl : boost::noncopyable
                eof_                    = false;\r
                seek_target_    = start_ != 0 ? start_ : std::numeric_limits<uint32_t>::max();\r
                is_running_             = true;\r
-               thread_                 = boost::thread([this]{run();});\r
-                                                                               \r
+\r
+               while(!full())\r
+                       tick();\r
+                                                                                               \r
                graph_->set_color("seek", diagnostics::color(1.0f, 0.5f, 0.0f));        \r
                graph_->set_color("audio-buffer", diagnostics::color(0.7f, 0.4f, 0.4f));\r
                graph_->set_color("video-buffer", diagnostics::color(1.0f, 1.0f, 0.0f));        \r
                \r
-               while(!full())\r
-                       tick();\r
+               thread_                 = boost::thread([this]{run();});\r
        }\r
 \r
        ~impl()\r