]> git.sesse.net Git - casparcg/commitdiff
Fix issue #366 - return false instead of nullptr
authorkrzyc <pyrkosz@o2.pl>
Wed, 30 Mar 2016 18:19:35 +0000 (20:19 +0200)
committerkrzyc <pyrkosz@o2.pl>
Wed, 30 Mar 2016 18:19:35 +0000 (20:19 +0200)
modules/ffmpeg/producer/util/util.cpp

index 652a9a7ccc9b4107154d9e436d4ac0d4e5644080..3546305f55ae61eeee43b1dd0d33a08b249c96ed 100644 (file)
@@ -588,7 +588,7 @@ bool is_valid_file(const std::wstring& filename, bool only_video)
                buf.push_back(*file_it);
 
        if(buf.empty())
-               return nullptr;
+               return false;
 
        pb.buf          = buf.data();
        pb.buf_size = static_cast<int>(buf.size());