mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
GstViewfinderBin: Fix typo in videoscale's name element
If user's video sink has been changed, it is unable to fetch videoscale element by name and link to the video sink.
This commit is contained in:
parent
52cd9846eb
commit
daa47b8dc1
1 changed files with 2 additions and 2 deletions
|
@ -205,7 +205,7 @@ gst_viewfinder_bin_create_elements (GstViewfinderBin * vfbin)
|
|||
}
|
||||
gst_bin_add (GST_BIN_CAST (vfbin), csp);
|
||||
|
||||
videoscale = gst_element_factory_make ("videoscale", "vfbin->videoscale");
|
||||
videoscale = gst_element_factory_make ("videoscale", "vfbin-videoscale");
|
||||
if (!videoscale) {
|
||||
missing_element_name = "videoscale";
|
||||
goto missing_element;
|
||||
|
@ -227,7 +227,7 @@ gst_viewfinder_bin_create_elements (GstViewfinderBin * vfbin)
|
|||
gboolean unref = FALSE;
|
||||
if (!videoscale) {
|
||||
videoscale = gst_bin_get_by_name (GST_BIN_CAST (vfbin),
|
||||
"vfbin-videscale");
|
||||
"vfbin-videoscale");
|
||||
unref = TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue