mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
basecamerasrc: Set preview pipeline NULL
Set preview pipeline to NULL when freed to be able to recreate it on the following lines
This commit is contained in:
parent
ec23bc2768
commit
a50dca2752
1 changed files with 1 additions and 0 deletions
|
@ -437,6 +437,7 @@ gst_base_camera_src_change_state (GstElement * element,
|
|||
/* recreate the preview pipeline */
|
||||
if (self->preview_pipeline && self->preview_filter_changed) {
|
||||
gst_camerabin_destroy_preview_pipeline (self->preview_pipeline);
|
||||
self->preview_pipeline = NULL;
|
||||
}
|
||||
|
||||
if (self->preview_pipeline == NULL)
|
||||
|
|
Loading…
Reference in a new issue