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:
Thiago Santos 2011-03-14 14:30:36 -03:00
parent ec23bc2768
commit a50dca2752

View file

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