mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +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);
|
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) {
|
if (!videoscale) {
|
||||||
missing_element_name = "videoscale";
|
missing_element_name = "videoscale";
|
||||||
goto missing_element;
|
goto missing_element;
|
||||||
|
@ -227,7 +227,7 @@ gst_viewfinder_bin_create_elements (GstViewfinderBin * vfbin)
|
||||||
gboolean unref = FALSE;
|
gboolean unref = FALSE;
|
||||||
if (!videoscale) {
|
if (!videoscale) {
|
||||||
videoscale = gst_bin_get_by_name (GST_BIN_CAST (vfbin),
|
videoscale = gst_bin_get_by_name (GST_BIN_CAST (vfbin),
|
||||||
"vfbin-videscale");
|
"vfbin-videoscale");
|
||||||
unref = TRUE;
|
unref = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue