Try to build windows command-line stuff with -mconsole.
[dcpomatic.git] / src / lib / ffmpeg.cc
index a39de391af92abafbe3d9e39f355752875a13f72..c97b79a719bb6b540971c324bc906bdffca644ab 100644 (file)
@@ -30,6 +30,7 @@ extern "C" {
 #include "i18n.h"
 
 using std::string;
+using std::cout;
 using std::stringstream;
 using boost::shared_ptr;
 
@@ -67,8 +68,8 @@ FFmpeg::setup_general ()
 {
        av_register_all ();
 
-       if (avformat_open_input (&_format_context, _ffmpeg_content->file().string().c_str(), 0, 0) < 0) {
-               throw OpenFileError (_ffmpeg_content->file().string ());
+       if (avformat_open_input (&_format_context, _ffmpeg_content->path().string().c_str(), 0, 0) < 0) {
+               throw OpenFileError (_ffmpeg_content->path().string ());
        }
 
        if (avformat_find_stream_info (_format_context, 0) < 0) {