mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
vaapidecodebin: element warning if missing element
Raise an element warning if a required element is not available, thus the pipeline will post a warning message and the application will be informed.
This commit is contained in:
parent
05cf583c97
commit
55e244817d
1 changed files with 5 additions and 4 deletions
|
@ -137,12 +137,13 @@ post_missing_element_message (GstVaapiDecodeBin * vaapidecbin,
|
|||
{
|
||||
GstMessage *msg;
|
||||
|
||||
GST_ERROR_OBJECT (vaapidecbin, "Failed to create %s element",
|
||||
missing_factory);
|
||||
msg =
|
||||
gst_missing_element_message_new (GST_ELEMENT_CAST (vaapidecbin),
|
||||
msg = gst_missing_element_message_new (GST_ELEMENT_CAST (vaapidecbin),
|
||||
missing_factory);
|
||||
gst_element_post_message (GST_ELEMENT_CAST (vaapidecbin), msg);
|
||||
|
||||
GST_ELEMENT_WARNING (vaapidecbin, CORE, MISSING_PLUGIN,
|
||||
("Missing element '%s' - check your GStreamer installation.",
|
||||
missing_factory), ("video decoding might fail"));
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
Loading…
Reference in a new issue