camerabin: use correct element name when replacing the video filter
authorThiago Santos <thiago.sousa.santos@collabora.com>
Thu, 27 Sep 2012 22:40:36 +0000 (19:40 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Thu, 27 Sep 2012 22:42:02 +0000 (19:42 -0300)
The name was updated on the 0.10 -> 1.0 transition, but the
gst_bin_remove was still using the old name, causing an assertion
when replacing video-source-filter

https://bugzilla.gnome.org/show_bug.cgi?id=681564

gst/camerabin2/gstwrappercamerabinsrc.c

index cc1ce4168a17520d1cc5dd06811367850bc76b4f..b409fc0f3883daae4e4bfc410a4160026337f890 100644 (file)
@@ -596,7 +596,7 @@ gst_wrapper_camera_bin_src_construct_pipeline (GstBaseCameraSrc * bcamsrc)
       gst_bin_remove (cbin, self->video_filter);
       gst_object_unref (self->video_filter);
       self->video_filter = NULL;
-      filter_csp = gst_bin_get_by_name (cbin, "filter-colorspace");
+      filter_csp = gst_bin_get_by_name (cbin, "filter-videoconvert");
       gst_bin_remove (cbin, filter_csp);
       gst_object_unref (filter_csp);
       filter_csp = NULL;