From bb98e579f7242f574f18901904358e3a1c88834b Mon Sep 17 00:00:00 2001 From: andrejlevkovitch Date: Tue, 28 Nov 2023 16:04:27 +0100 Subject: [PATCH] fix problem with log library and if-else without braces --- video/videoOptions.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/video/videoOptions.cpp b/video/videoOptions.cpp index 09cbde15..c13700fb 100644 --- a/video/videoOptions.cpp +++ b/video/videoOptions.cpp @@ -52,10 +52,12 @@ void videoOptions::Print( const char* prefix ) const { LogInfo("------------------------------------------------\n"); - if( prefix != NULL ) + if( prefix != NULL ) { LogInfo("%s video options:\n", prefix); - else + } + else { LogInfo("video options:\n"); + } LogInfo("------------------------------------------------\n"); resource.Print(" "); @@ -458,4 +460,3 @@ videoOptions::CodecType videoOptions::CodecTypeFromStr( const char* str ) return gst_default_codec(); } -