rpicamsrc: Added "src->started = FALSE;" to gst_rpi_cam_src_stop

Makes the element reusable multiple times after a state change back to READY.
Fixes #105

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/823>
This commit is contained in:
Tim Schneider 2020-11-18 20:09:24 +01:00 committed by Jan Schmidt
parent 8a0a7d932a
commit 2c76f03fe2

View file

@ -1266,6 +1266,7 @@ gst_rpi_cam_src_stop (GstBaseSrc * parent)
raspi_capture_stop (src->capture_state);
raspi_capture_free (src->capture_state);
src->capture_state = NULL;
src->started = FALSE;
return TRUE;
}