Skip to content

Commit 8a38226

Browse files
author
Clement Champetier
committed
encoder/decoder: clean message when can't set options
1 parent 1a0f103 commit 8a38226

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/AvTranscoder/decoder/VideoDecoder.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ VideoDecoder::~VideoDecoder()
4242

4343
void VideoDecoder::setup()
4444
{
45-
4645
_inputStream->getVideoCodec().open();
4746

4847
#if LIBAVCODEC_VERSION_MAJOR > 54
@@ -134,7 +133,7 @@ void VideoDecoder::setProfile( const ProfileLoader::Profile& profile )
134133
}
135134
catch( std::exception& e )
136135
{
137-
std::cout << "[InputVideo] warning - can't set option " << (*it).first << " to " << (*it).second << ": " << e.what() << std::endl;
136+
std::cout << "[VideoDecoder] warning - can't set option " << (*it).first << " to " << (*it).second << ": " << e.what() << std::endl;
138137
}
139138
}
140139
}

src/AvTranscoder/encoder/AudioEncoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ void AudioEncoder::setProfile( const ProfileLoader::Profile& profile, const Audi
187187
}
188188
catch( std::exception& e )
189189
{
190-
std::cout << "[OutputAudio] warning - can't set option " << (*it).first << " to " << (*it).second << ": " << e.what() << std::endl;
190+
std::cout << "[AudioEncoder] warning - can't set option " << (*it).first << " to " << (*it).second << ": " << e.what() << std::endl;
191191
}
192192
}
193193
}

src/AvTranscoder/encoder/VideoEncoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ void VideoEncoder::setProfile( const ProfileLoader::Profile& profile, const avtr
176176
}
177177
catch( std::exception& e )
178178
{
179-
std::cout << "[OutputVideo] warning - can't set option " << (*it).first << " to " << (*it).second << ": " << e.what() << std::endl;
179+
std::cout << "[VideoEncoder] warning - can't set option " << (*it).first << " to " << (*it).second << ": " << e.what() << std::endl;
180180
}
181181
}
182182
}

0 commit comments

Comments
 (0)