From: ronag Date: Mon, 26 Mar 2012 22:22:37 +0000 (+0000) Subject: git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches... X-Git-Tag: 2.1.0_Beta1~565 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=89de187ea94b5f13bfbd1902f935785f6381cd9b;p=casparcg git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches/2.1.0@2760 362d55ac-95cf-4e76-9f9a-cbaa9c17b72d --- diff --git a/modules/ffmpeg/producer/input/input.cpp b/modules/ffmpeg/producer/input/input.cpp index d4b720eac..41e0d1087 100644 --- a/modules/ffmpeg/producer/input/input.cpp +++ b/modules/ffmpeg/producer/input/input.cpp @@ -143,14 +143,15 @@ struct input::impl : boost::noncopyable eof_ = false; seek_target_ = start_ != 0 ? start_ : std::numeric_limits::max(); is_running_ = true; - thread_ = boost::thread([this]{run();}); - + + while(!full()) + tick(); + graph_->set_color("seek", diagnostics::color(1.0f, 0.5f, 0.0f)); graph_->set_color("audio-buffer", diagnostics::color(0.7f, 0.4f, 0.4f)); graph_->set_color("video-buffer", diagnostics::color(1.0f, 1.0f, 0.0f)); - while(!full()) - tick(); + thread_ = boost::thread([this]{run();}); } ~impl()