mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:16:13 +00:00
camerabin2: Improve missing plugin message
Improves the message text for missing plugin messages from camerabin2
This commit is contained in:
parent
4ca402a470
commit
54a35ab879
1 changed files with 9 additions and 2 deletions
|
@ -26,10 +26,16 @@
|
||||||
* #GstCameraBinVideo.
|
* #GstCameraBinVideo.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <gst/basecamerabinsrc/gstbasecamerasrc.h>
|
#include <gst/basecamerabinsrc/gstbasecamerasrc.h>
|
||||||
|
#include <gst/gst-i18n-plugin.h>
|
||||||
|
|
||||||
#include "camerabingeneral.h"
|
#include "camerabingeneral.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -155,8 +161,9 @@ gst_camerabin_create_and_add_element (GstBin * bin, const gchar * elem_name,
|
||||||
|
|
||||||
new_elem = gst_element_factory_make (elem_name, instance_name);
|
new_elem = gst_element_factory_make (elem_name, instance_name);
|
||||||
if (!new_elem) {
|
if (!new_elem) {
|
||||||
GST_ELEMENT_ERROR (bin, CORE, MISSING_PLUGIN, (NULL),
|
GST_ELEMENT_ERROR (bin, CORE, MISSING_PLUGIN,
|
||||||
("could not create \"%s\" element.", elem_name));
|
(_("Missing element '%s' - check your GStreamer installation."),
|
||||||
|
elem_name), (NULL));
|
||||||
} else if (!gst_camerabin_add_element (bin, new_elem)) {
|
} else if (!gst_camerabin_add_element (bin, new_elem)) {
|
||||||
new_elem = NULL;
|
new_elem = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue