\r
\r
/* File created by MIDL compiler version 7.00.0555 */\r
-/* at Mon Nov 14 10:20:06 2011\r
+/* at Sat Nov 19 12:04:44 2011\r
*/\r
/* Compiler settings for interop\DeckLinkAPI.idl:\r
Oicf, W1, Zp8, env=Win32 (32b run), target_arch=X86 7.00.0555 \r
\r
\r
/* File created by MIDL compiler version 7.00.0555 */\r
-/* at Mon Nov 14 10:20:06 2011\r
+/* at Sat Nov 19 12:04:44 2011\r
*/\r
/* Compiler settings for interop\DeckLinkAPI.idl:\r
Oicf, W1, Zp8, env=Win32 (32b run), target_arch=X86 7.00.0555 \r
auto video_nb_frames = video_decoder_ ? video_decoder_->nb_frames() : std::numeric_limits<int64_t>::max();\r
auto audio_nb_frames = audio_decoder_ ? audio_decoder_->nb_frames() : std::numeric_limits<int64_t>::max();\r
\r
- nb_frames = std::min(static_cast<int64_t>(length_), std::max(nb_frames, std::max(video_nb_frames, audio_nb_frames)));\r
+ nb_frames = std::max(nb_frames, std::max(video_nb_frames, audio_nb_frames));\r
}\r
\r
+ nb_frames = std::min(static_cast<int64_t>(length_), nb_frames);\r
+\r
nb_frames = muxer_->calc_nb_frames(nb_frames);\r
\r
// TODO: Might need to scale nb_frames av frame_muxer transformations.\r
, length_(length)\r
, frame_number_(0)\r
{ \r
+ buffer_size_ = 0;\r
+ nb_frames_ = 0;\r
+ nb_loops_ = 0;\r
+\r
if(start_ > 0) \r
seek_frame(start_);\r
\r
\r
is_running_ = true;\r
thread_ = boost::thread([this]{run();});\r
+\r
+ CASPAR_LOG(info) << print() << L" Initialized.";\r
}\r
\r
~implementation()\r
try\r
{\r
CASPAR_LOG(info) << print() << " Thread Started.";\r
+ \r
+ CASPAR_ASSERT(nb_frames_ < 1000);\r
\r
while(is_running_)\r
{\r
auto packet = create_packet();\r
auto ret = av_read_frame(format_context_.get(), packet.get()); // packet is only valid until next call of av_read_frame. Use av_dup_packet to extend its life. \r
\r
+ CASPAR_ASSERT(nb_frames_ < 1000);\r
+\r
if(is_eof(ret)) \r
{\r
++nb_loops_;\r
<?xml version="1.0" encoding="utf-8"?>\r
<configuration>\r
<paths>\r
- <media-path>C:\Documents and Settings\rona01\Desktop\CasparCG 2.0 Beta 2\server\media\</media-path>\r
- <log-path>C:\Documents and Settings\rona01\Desktop\CasparCG 2.0 Beta 2\server\log\</log-path>\r
- <data-path>C:\Documents and Settings\rona01\Desktop\CasparCG 2.0 Beta 2\server\data\</data-path>\r
- <template-path>C:\Documents and Settings\rona01\Desktop\CasparCG 2.0 Beta 2\server\templates\</template-path>\r
+ <media-path>L:\casparcg\_media\</media-path>\r
+ <log-path>L:\casparcg\_log\</log-path>\r
+ <data-path>L:\casparcg\_data\</data-path>\r
+ <template-path>L:\casparcg\_templates\</template-path>\r
</paths>\r
<mixers>\r
<blend-modes>true</blend-modes>\r
<channel>\r
<video-mode>720p5000</video-mode>\r
<consumers>\r
- <screen></screen>\r
+ <decklink></decklink>\r
</consumers>\r
</channel>\r
</channels>\r