rpicamsrc: Added "src->started = FALSE;" to gst_rpi_cam_src_stop
authorTim Schneider <tim.schneider94@t-online.de>
Wed, 18 Nov 2020 19:09:24 +0000 (20:09 +0100)
committerJan Schmidt <jan@centricular.com>
Thu, 19 Nov 2020 15:15:15 +0000 (02:15 +1100)
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>

sys/rpicamsrc/gstrpicamsrc.c

index a148d41..2aa28f4 100644 (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;
 }