LOG_INFO("factory [name:%s, klass:%s]", factory_name, klass);
+ str_arr = webrtc->ini.general.gst_excluded_elements;
+ while (str_arr && *str_arr) {
+ if (g_strrstr(factory_name, *str_arr++)) {
+ LOG_WARNING("this element[%s] is an item of excluded element list in ini file, skip it", factory_name);
+ return GST_AUTOPLUG_SELECT_SKIP;
+ }
+ }
+
if (g_strrstr(klass, "Decoder/Audio/Hardware") ||
(g_strrstr(klass, "Decoder/Audio") && __is_factory_name_for_hw(factory_name))) {
str_arr = webrtc->ini.rendering_sink.a_hw_decoder_elements;
if (str_arr == NULL || !g_strv_contains((const gchar * const *)str_arr, factory_name)) {
- LOG_DEBUG("this audio hw decoder element[%s] is not specified in ini file, skip it", factory_name);
+ LOG_WARNING("this audio hw decoder element[%s] is not specified in ini file, skip it", factory_name);
return GST_AUTOPLUG_SELECT_SKIP;
}
} else if (g_strrstr(klass, "Decoder/Video/Hardware") ||
(g_strrstr(klass, "Decoder/Video") && __is_factory_name_for_hw(factory_name))) {
str_arr = webrtc->ini.rendering_sink.v_hw_decoder_elements;
if (str_arr == NULL || !g_strv_contains((const gchar * const *)str_arr, factory_name)) {
- LOG_DEBUG("this video hw decoder element[%s] is not specified in ini file, skip it", factory_name);
+ LOG_WARNING("this video hw decoder element[%s] is not specified in ini file, skip it", factory_name);
return GST_AUTOPLUG_SELECT_SKIP;
}
}