simplify code

The function spa_libcamera_stream_off() always returns 0.
This commit is contained in:
Ordoñez Müller, Antonio 2026-03-24 10:56:45 +01:00
parent 830e81f200
commit 14dd77578a

View file

@ -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;