Commit cc15c439 authored by François Grisez's avatar François Grisez
Browse files

Rename log message tags in h26x-*-filter.cpp files.

parent 69002ab1
......@@ -56,7 +56,7 @@ void H26xDecoderFilter::process() {
if (!unpacking_ret.frameAvailable) continue;
if (unpacking_ret.frameCorrupted) {
ms_warning("MediaCodecDecoder: corrupted frame");
ms_warning("H26xDecoder: corrupted frame");
requestPli = true;
if (_freezeOnError) {
ms_queue_flush(&frame);
......@@ -78,7 +78,7 @@ void H26xDecoderFilter::process() {
VideoDecoder::Status status;
while ((status = _codec->fetch(om)) != VideoDecoder::Status::noFrameAvailable) {
if (status == VideoDecoder::decodingFailure) {
ms_error("MediaCodecDecoder: decoding failure");
ms_error("H26xDecoder: decoding failure");
requestPli = true;
continue;
}
......@@ -89,7 +89,7 @@ void H26xDecoderFilter::process() {
_vsize.height = pic.h;
if (!_firstImageDecoded) {
ms_message("MediaCodecDecoder: first frame decoded %ix%i", _vsize.width, _vsize.height);
ms_message("H26xDecoder: first frame decoded %ix%i", _vsize.width, _vsize.height);
_firstImageDecoded = true;
notify(MS_VIDEO_DECODER_FIRST_IMAGE_DECODED);
}
......@@ -130,7 +130,7 @@ void H26xDecoderFilter::enableAvpf(bool enable) {
void H26xDecoderFilter::enableFreezeOnError(bool enable) {
_freezeOnError = enable;
ms_message("MediaCodecDecoder: freeze on error %s", _freezeOnError ? "enabled" : "disabled");
ms_message("H26xDecoder: freeze on error %s", _freezeOnError ? "enabled" : "disabled");
}
} // namespace mediastreamer
......@@ -48,7 +48,7 @@ void H26xEncoderFilter::process() {
bool requestIFrame = false;
if (ms_iframe_requests_limiter_iframe_requested(&_iframeLimiter, getTime()) ||
(!_avpfEnabled && ms_video_starter_need_i_frame(&_starter, getTime()))) {
ms_message("MediaCodecEncoder: requesting I-frame to the encoder.");
ms_message("H26xEncoder: requesting I-frame to the encoder.");
requestIFrame = true;
ms_iframe_requests_limiter_notify_iframe_sent(&_iframeLimiter, getTime());
}
......@@ -84,31 +84,31 @@ void H26xEncoderFilter::setVideoConfiguration(MSVideoConfiguration vconf) {
_encoder->setFps(vconf.fps);
_encoder->setBitrate(vconf.required_bitrate);
_vconf = vconf;
ms_message("MediaCodecEncoder: video configuration set: bitrate=%d bits/s, fps=%f, vsize=%dx%d", _vconf.required_bitrate, _vconf.fps, _vconf.vsize.width, _vconf.vsize.height);
ms_message("H26xEncoder: video configuration set: bitrate=%d bits/s, fps=%f, vsize=%dx%d", _vconf.required_bitrate, _vconf.fps, _vconf.vsize.width, _vconf.vsize.height);
}
void H26xEncoderFilter::enableAvpf(bool enable) {
ms_message("MediaCodecEncoder: AVPF %s", enable ? "enabled" : "disabled");
ms_message("H26xEncoder: AVPF %s", enable ? "enabled" : "disabled");
_avpfEnabled = enable;
}
void H26xEncoderFilter::requestVfu() {
ms_message("MediaCodecEncoder: VFU requested");
ms_message("H26xEncoder: VFU requested");
ms_iframe_requests_limiter_request_iframe(&_iframeLimiter);
}
void H26xEncoderFilter::notifyPli() {
ms_message("MediaCodecEncoder: PLI requested");
ms_message("H26xEncoder: PLI requested");
ms_iframe_requests_limiter_request_iframe(&_iframeLimiter);
}
void H26xEncoderFilter::notifyFir() {
ms_message("MediaCodecEncoder: FIR requested");
ms_message("H26xEncoder: FIR requested");
ms_iframe_requests_limiter_request_iframe(&_iframeLimiter);
}
void H26xEncoderFilter::notifySli() {
ms_message("MediaCodecEncoder: SLI requested");
ms_message("H26xEncoder: SLI requested");
ms_iframe_requests_limiter_request_iframe(&_iframeLimiter);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment