media-session: log info when loading monitor fails

Log info in all monitor plugins instead of an error.
This commit is contained in:
Wim Taymans 2021-04-09 11:55:55 +02:00
parent 5d20f50df8
commit 59ed07864d
3 changed files with 3 additions and 1 deletions

View file

@ -1061,6 +1061,7 @@ int sm_alsa_monitor_start(struct sm_media_session *session)
impl->handle = pw_context_load_spa_handle(context, SPA_NAME_API_ALSA_ENUM_UDEV, NULL);
if (impl->handle == NULL) {
res = -errno;
pw_log_info("can't load %s: %m", SPA_NAME_API_ALSA_ENUM_UDEV);
goto out_free;
}

View file

@ -586,7 +586,7 @@ int sm_bluez5_monitor_start(struct sm_media_session *session)
impl->handle = pw_context_load_spa_handle(context, SPA_NAME_API_BLUEZ5_ENUM_DBUS, &impl->props->dict);
if (impl->handle == NULL) {
res = -errno;
pw_log_error("can't load %s: %m", SPA_NAME_API_BLUEZ5_ENUM_DBUS);
pw_log_info("can't load %s: %m", SPA_NAME_API_BLUEZ5_ENUM_DBUS);
goto out_free;
}
if ((res = spa_handle_get_interface(impl->handle, SPA_TYPE_INTERFACE_Device, &iface)) < 0) {

View file

@ -550,6 +550,7 @@ int sm_v4l2_monitor_start(struct sm_media_session *sess)
impl->handle = pw_context_load_spa_handle(context, SPA_NAME_API_V4L2_ENUM_UDEV, NULL);
if (impl->handle == NULL) {
res = -errno;
pw_log_info("can't load %s: %m", SPA_NAME_API_V4L2_ENUM_UDEV);
goto out_free;
}