mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	media-session: log info when loading monitor fails
Log info in all monitor plugins instead of an error.
This commit is contained in:
		
							parent
							
								
									5d20f50df8
								
							
						
					
					
						commit
						59ed07864d
					
				
					 3 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue