Cineform: fix log messages

This commit is contained in:
Martin Piatka
2019-03-01 13:58:34 +01:00
parent ada2d3874e
commit 897fb4bde5
2 changed files with 3 additions and 4 deletions

View File

@@ -183,7 +183,7 @@ static struct module * cineform_compress_init(struct module *parent, const char
return NULL;
}
log_msg(LOG_LEVEL_ERROR, "[cineform] : Threads: %d.\n", s->requested_threads);
log_msg(LOG_LEVEL_NOTICE, "[cineform] : Threads: %d.\n", s->requested_threads);
CFHD_Error status = CFHD_ERROR_OKAY;
status = CFHD_CreateEncoderPool(&s->encoderPoolRef,
s->requested_threads,
@@ -325,7 +325,7 @@ static bool configure_with(struct state_video_compress_cineform *s, struct video
s->saved_desc = desc;
log_msg(LOG_LEVEL_ERROR, "[cineform] start encoder pool\n");
log_msg(LOG_LEVEL_INFO, "[cineform] start encoder pool\n");
status = CFHD_StartEncoderPool(s->encoderPoolRef);
if(status != CFHD_ERROR_OKAY){
log_msg(LOG_LEVEL_ERROR, "[cineform] Failed to start encoder pool\n");

View File

@@ -144,7 +144,7 @@ static bool configure_with(struct state_cineform_decompress *s,
s->convert = i.convert;
CFHD_GetImagePitch(desc.width, i.cfhd_pixfmt, &s->pitch);
if(i.ug_codec == R12L){
log_msg(LOG_LEVEL_NOTICE, "[cineform] Using decoding to 12-bit RGB.\n");
log_msg(LOG_LEVEL_NOTICE, "[cineform] Decoding to 12-bit RGB.\n");
}
return true;
}
@@ -301,7 +301,6 @@ static const struct decode_from_to *cineform_decompress_get_decoders() {
if (ret[0].from == VIDEO_CODEC_NONE) { // not yet initialized
memcpy(ret, dec_static, sizeof dec_static);
if (get_commandline_param("cfhd-use-12bit")) {
log_msg(LOG_LEVEL_NOTICE, "[cineform] param 12-bit RGB.\n");
//Report only 12-bit formats
ret[0] = (struct decode_from_to) {CFHD, R12L, 100};
ret[1] = { };