basecamerasrc: Set preview pipeline NULL
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Mon, 14 Mar 2011 17:30:36 +0000 (14:30 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Wed, 23 Mar 2011 19:13:32 +0000 (16:13 -0300)
Set preview pipeline to NULL when freed to be able to
recreate it on the following lines

gst-libs/gst/basecamerabinsrc/gstbasecamerasrc.c

index 98d594e..e2e6f69 100644 (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)