Skip to content

Commit 534aeeb

Browse files
author
Clement Champetier
committed
setProfile: uniformize print
* Do not print if first wraning (before setup). * Print with [name_of_the_class].
1 parent 83cacd3 commit 534aeeb

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/AvTranscoder/EssenceStream/InputVideo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ void InputVideo::setProfile( const Profile::ProfileDesc& desc )
164164
}
165165
catch( std::exception& e )
166166
{
167-
std::cout << "InputVideo warning: " << e.what() << std::endl;
167+
std::cout << "[InputVideo] warning: " << e.what() << std::endl;
168168
}
169169
}
170170
}

src/AvTranscoder/EssenceStream/OutputAudio.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ void OutputAudio::setProfile( const Profile::ProfileDesc& desc, const AudioFrame
202202
}
203203
catch( std::exception& e )
204204
{
205-
std::cout << "OutputAudio warning: " << e.what() << std::endl;
205+
//std::cout << "[OutputAudio] warning: " << e.what() << std::endl;
206206
}
207207
}
208208

@@ -223,7 +223,7 @@ void OutputAudio::setProfile( const Profile::ProfileDesc& desc, const AudioFrame
223223
}
224224
catch( std::exception& e )
225225
{
226-
std::cout << "OutputAudio 2.warning: " << e.what() << std::endl;
226+
std::cout << "[OutputAudio] warning: " << e.what() << std::endl;
227227
}
228228
}
229229
}

src/AvTranscoder/File/InputFile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ void InputFile::setProfile( const Profile::ProfileDesc& desc )
230230
}
231231
catch( std::exception& e )
232232
{
233-
std::cout << "InputFile warning: " << e.what() << std::endl;
233+
std::cout << "[InputFile] warning: " << e.what() << std::endl;
234234
}
235235
}
236236
}

src/AvTranscoder/File/OutputFile.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ void OutputFile::setProfile( const Profile::ProfileDesc& desc )
252252
}
253253
catch( std::exception& e )
254254
{
255-
std::cout << "OutputFile warning: " << e.what() << std::endl;
255+
//std::cout << "[OutputFile] warning: " << e.what() << std::endl;
256256
}
257257
}
258258

@@ -272,7 +272,7 @@ void OutputFile::setProfile( const Profile::ProfileDesc& desc )
272272
}
273273
catch( std::exception& e )
274274
{
275-
std::cout << "OutputFile 2.warning: " << e.what() << std::endl;
275+
std::cout << "[OutputFile] warning: " << e.what() << std::endl;
276276
}
277277
}
278278
}

0 commit comments

Comments
 (0)