Commit 674e2309 authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

uridecodebin: Don't post missing plugin messages twice

decodebin2 already posts them after emitting the unknown-type signal,
there's no need to post another one.
parent cf9c6a22
...@@ -33,8 +33,6 @@ ...@@ -33,8 +33,6 @@
#include <gst/gst.h> #include <gst/gst.h>
#include <gst/gst-i18n-plugin.h> #include <gst/gst-i18n-plugin.h>
#include <gst/pbutils/missing-plugins.h>
#include "gstfactorylists.h" #include "gstfactorylists.h"
#include "gstplay-marshal.h" #include "gstplay-marshal.h"
#include "gstplay-enum.h" #include "gstplay-enum.h"
...@@ -622,12 +620,8 @@ static void ...@@ -622,12 +620,8 @@ static void
unknown_type_cb (GstElement * element, GstPad * pad, GstCaps * caps, unknown_type_cb (GstElement * element, GstPad * pad, GstCaps * caps,
GstURIDecodeBin * decoder) GstURIDecodeBin * decoder)
{ {
GstMessage *msg;
gchar *capsstr; gchar *capsstr;
msg = gst_missing_decoder_message_new (GST_ELEMENT_CAST (decoder), caps);
gst_element_post_message (GST_ELEMENT_CAST (decoder), msg);
capsstr = gst_caps_to_string (caps); capsstr = gst_caps_to_string (caps);
GST_ELEMENT_WARNING (decoder, CORE, MISSING_PLUGIN, GST_ELEMENT_WARNING (decoder, CORE, MISSING_PLUGIN,
(_("No decoder available for type \'%s\'."), capsstr), (NULL)); (_("No decoder available for type \'%s\'."), capsstr), (NULL));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment