mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
rpicamsrc: Don't destroy the camera component on startup error
Just disable the camera component when it fails to start. The most common reason is that the camera device is already in use, and if we just disable the mmal component correct cleanup will happen later
This commit is contained in:
parent
39a026760d
commit
09d9ac2d2e
1 changed files with 1 additions and 2 deletions
|
@ -1268,9 +1268,8 @@ raspi_capture_set_format_and_start(RASPIVID_STATE *state)
|
|||
return status;
|
||||
|
||||
error:
|
||||
|
||||
if (camera)
|
||||
mmal_component_destroy(camera);
|
||||
mmal_component_disable(camera);
|
||||
|
||||
return status;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue