#include <core/consumer/frame_consumer.h>\r
#include <core/producer/frame_producer.h>\r
\r
-#include <ppl.h>\r
+#include <boost/thread/recursive_mutex.hpp>\r
\r
#if defined(_MSC_VER)\r
#pragma warning (disable : 4244)\r
if(!mutex)\r
return 0;\r
\r
- auto my_mutex = reinterpret_cast<Concurrency::critical_section*>(*mutex);\r
+ auto my_mutex = reinterpret_cast<boost::recursive_mutex*>(*mutex);\r
\r
switch(op) \r
{ \r
case AV_LOCK_CREATE: \r
{ \r
- *mutex = new Concurrency::critical_section(); \r
+ *mutex = new boost::recursive_mutex(); \r
break; \r
} \r
case AV_LOCK_OBTAIN: \r
\r
#include <agents.h>\r
#include <agents_extras.h>\r
-#include <connect.h>\r
#include <concrt.h>\r
#include <ppl.h>\r
\r
\r
const safe_ptr<diagnostics::graph> graph_;\r
\r
- input input_; \r
- std::shared_ptr<video_decoder> video_decoder_;\r
std::shared_ptr<audio_decoder> audio_decoder_; \r
+ std::shared_ptr<video_decoder> video_decoder_;\r
std::unique_ptr<frame_muxer2> muxer_;\r
+ input input_; \r
\r
safe_ptr<core::basic_frame> last_frame_;\r
\r
CASPAR_LOG(warning) << "Failed to open audio-stream. Running without audio."; \r
}\r
\r
- Concurrency::connect(packets_, throw_away_);\r
+ packets_.link_target(&throw_away_);\r
\r
CASPAR_VERIFY(video_decoder_ || audio_decoder_, ffmpeg_error());\r
\r