mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-13 08:21:09 -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_Pause:
|
||||||
case SPA_NODE_COMMAND_Suspend:
|
case SPA_NODE_COMMAND_Suspend:
|
||||||
if ((res = spa_libcamera_stream_off(impl)) < 0)
|
spa_libcamera_stream_off(impl);
|
||||||
return res;
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return -ENOTSUP;
|
return -ENOTSUP;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue