[gst-cvs] gst-plugins-base: playbin2: Post a missing element message and an error message if no uridecodebin can be found
Sebastian Dröge
slomo at kemper.freedesktop.org
Sun Feb 14 23:49:22 PST 2010
Module: gst-plugins-base
Branch: master
Commit: 09f972bdba789e3212493cf2b288aedc5e79fa5d
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=09f972bdba789e3212493cf2b288aedc5e79fa5d
Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date: Mon Feb 15 08:48:58 2010 +0100
playbin2: Post a missing element message and an error message if no uridecodebin can be found
---
gst/playback/gstplaybin2.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/gst/playback/gstplaybin2.c b/gst/playback/gstplaybin2.c
index d66183f..4785dc5 100644
--- a/gst/playback/gstplaybin2.c
+++ b/gst/playback/gstplaybin2.c
@@ -3316,7 +3316,16 @@ activate_group (GstPlayBin * playbin, GstSourceGroup * group, GstState target)
/* ERRORS */
no_decodebin:
{
+ GstMessage *msg;
+
GST_SOURCE_GROUP_UNLOCK (group);
+ msg =
+ gst_missing_element_message_new (GST_ELEMENT_CAST (playbin),
+ "uridecodebin");
+ gst_element_post_message (GST_ELEMENT_CAST (playbin), msg);
+
+ GST_ELEMENT_ERROR (playbin, CORE, MISSING_PLUGIN,
+ (_("Could not create \"uridecodebin\" element.")), (NULL));
return FALSE;
}
uridecodebin_failure:
More information about the Gstreamer-commits
mailing list