diff --git a/gst/camerabin/camerabingeneral.c b/gst/camerabin/camerabingeneral.c index 635a4b6a92..41c242663a 100644 --- a/gst/camerabin/camerabingeneral.c +++ b/gst/camerabin/camerabingeneral.c @@ -26,6 +26,7 @@ * #GstCameraBinVideo. * */ +#include #include "camerabingeneral.h" #include @@ -159,18 +160,18 @@ gst_camerabin_setup_default_element (GstBin * bin, GstElement * user_elem, if (user_elem) { GST_DEBUG_OBJECT (bin, "trying configured element"); - elem = try_element (bin, user_elem, FALSE); + elem = try_element (GST_ELEMENT_CAST (bin), user_elem, FALSE); } else { /* only try fallback if no specific sink was chosen */ GST_DEBUG_OBJECT (bin, "trying %s", auto_elem_name); elem = gst_element_factory_make (auto_elem_name, NULL); - elem = try_element (bin, elem, TRUE); + elem = try_element (GST_ELEMENT_CAST (bin), elem, TRUE); if (elem == NULL) { /* if default sink from config.h is different then try it too */ if (strcmp (default_elem_name, auto_elem_name)) { GST_DEBUG_OBJECT (bin, "trying %s", default_elem_name); elem = gst_element_factory_make (default_elem_name, NULL); - elem = try_element (bin, elem, TRUE); + elem = try_element (GST_ELEMENT_CAST (bin), elem, TRUE); } } }