mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-25 09:05:57 -04:00
simplify code
The function spa_libcamera_stream_off() always returns 0.
This commit is contained in:
parent
830e81f200
commit
14dd77578a
1 changed files with 1 additions and 2 deletions
|
|
@ -1592,8 +1592,7 @@ int impl_node_send_command(void *object, const struct spa_command *command)
|
|||
}
|
||||
case SPA_NODE_COMMAND_Pause:
|
||||
case SPA_NODE_COMMAND_Suspend:
|
||||
if ((res = spa_libcamera_stream_off(impl)) < 0)
|
||||
return res;
|
||||
spa_libcamera_stream_off(impl);
|
||||
break;
|
||||
default:
|
||||
return -ENOTSUP;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue