mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
camerabin: fix build
This commit is contained in:
parent
f058bd79bd
commit
ca6e2f1fa3
1 changed files with 4 additions and 3 deletions
|
@ -26,6 +26,7 @@
|
|||
* #GstCameraBinVideo.
|
||||
*
|
||||
*/
|
||||
#include <string.h>
|
||||
|
||||
#include "camerabingeneral.h"
|
||||
#include <glib.h>
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue