Skip to content

Commit b1fefc2

Browse files
author
Clement Champetier
committed
log: improve warning messages
For the next classes: * AvInputVideo * AvOutputVideo * AvOutputAudio * InputFile * OutputFile
1 parent 6daa64c commit b1fefc2

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/AvTranscoder/essenceStream/AvInputVideo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ void AvInputVideo::setProfile( const ProfileLoader::Profile& profile )
145145
}
146146
catch( std::exception& e )
147147
{
148-
std::cout << "[InputVideo] warning: " << e.what() << std::endl;
148+
std::cout << "[InputVideo] warning - can't set option " << (*it).first << " to " << (*it).second << ": " << e.what() << std::endl;
149149
}
150150
}
151151
}

src/AvTranscoder/essenceStream/AvOutputAudio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ void AvOutputAudio::setProfile( const ProfileLoader::Profile& profile, const Aud
222222
}
223223
catch( std::exception& e )
224224
{
225-
std::cout << "[OutputAudio] warning: " << e.what() << std::endl;
225+
std::cout << "[OutputAudio] warning - can't set option " << (*it).first << " to " << (*it).second << ": " << e.what() << std::endl;
226226
}
227227
}
228228
}

src/AvTranscoder/essenceStream/AvOutputVideo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ void AvOutputVideo::setProfile( const ProfileLoader::Profile& profile, const avt
230230
}
231231
catch( std::exception& e )
232232
{
233-
std::cout << "[OutputVideo] warning: " << e.what() << std::endl;
233+
std::cout << "[OutputVideo] warning - can't set option " << (*it).first << " to " << (*it).second << ": " << e.what() << std::endl;
234234
}
235235
}
236236
}

src/AvTranscoder/file/InputFile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ void InputFile::setProfile( const ProfileLoader::Profile& profile )
229229
}
230230
catch( std::exception& e )
231231
{
232-
std::cout << "[InputFile] warning: " << e.what() << std::endl;
232+
std::cout << "[InputFile] warning - can't set option " << (*it).first << " to " << (*it).second << ": " << e.what() << std::endl;
233233
}
234234
}
235235
}

src/AvTranscoder/file/OutputFile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ void OutputFile::setProfile( const ProfileLoader::Profile& profile )
271271
}
272272
catch( std::exception& e )
273273
{
274-
std::cout << "[OutputFile] warning: " << e.what() << std::endl;
274+
std::cout << "[OutputFile] warning - can't set option " << (*it).first << " to " << (*it).second << ": " << e.what() << std::endl;
275275
}
276276
}
277277
}

0 commit comments

Comments
 (0)