summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2010-02-15 08:48:58 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2010-02-15 08:48:58 +0100
commit09f972bdba789e3212493cf2b288aedc5e79fa5d (patch)
tree533cdd33e58534c8ef6eff6c644b8eb9ef0acd4e
parentdbf632f3fb62860c0e370db83690dac86a547ca5 (diff)
playbin2: Post a missing element message and an error message if no uridecodebin can be found
-rw-r--r--gst/playback/gstplaybin2.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gst/playback/gstplaybin2.c b/gst/playback/gstplaybin2.c
index d66183f5..4785dc5b 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: