From e31c87193de537d4f6a25a9a300336fe8ed64c08 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 3 Mar 2021 09:54:24 -0500 Subject: [PATCH] Make Open() return 1 instead of 0 --- src/zm_ffmpeg_input.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zm_ffmpeg_input.cpp b/src/zm_ffmpeg_input.cpp index 2b3bcfd74..d717a4c3a 100644 --- a/src/zm_ffmpeg_input.cpp +++ b/src/zm_ffmpeg_input.cpp @@ -118,11 +118,11 @@ int FFmpeg_Input::Open(const char *filepath) { } // end foreach stream if ( video_stream_id == -1 ) - Error("Unable to locate video stream in %s", filepath); + Warning("Unable to locate video stream in %s", filepath); if ( audio_stream_id == -1 ) Debug(3, "Unable to locate audio stream in %s", filepath); - return 0; + return 1; } // end int FFmpeg_Input::Open( const char * filepath ) int FFmpeg_Input::Close( ) {