uridecodebin: Removed setting "iradio-mode" property in the source element
authorAndres Gomez <agomez@igalia.com>
Tue, 4 Mar 2014 14:51:11 +0000 (16:51 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 2 Oct 2014 06:50:48 +0000 (09:50 +0300)
The "iradio-mode" property used to have a default FALSE value in HTTP
source elements but now it should default to TRUE or just do not exist
as a property so it is not really needed to set it any more in
uridecodebin.

Apart from that this code could've never worked as uridecodebin looks for a
string-typed iradio-mode property, but it's a boolean in all sources.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=725383

gst/playback/gsturidecodebin.c

index f21658f34609a601dc4e2aaeb5e2a1615e3e9229..4dd43370e6f1f0e320c707fd0a1620f6b83705a8 100644 (file)
@@ -1344,17 +1344,6 @@ gen_source_element (GstURIDecodeBin * decoder)
 
   source_class = G_OBJECT_GET_CLASS (source);
 
-  /* make HTTP sources send extra headers so we get icecast
-   * metadata in case the stream is an icecast stream */
-  if (!strncmp (decoder->uri, "http://", 7)) {
-    pspec = g_object_class_find_property (source_class, "iradio-mode");
-
-    if (pspec && G_PARAM_SPEC_VALUE_TYPE (pspec) == G_TYPE_STRING) {
-      GST_LOG_OBJECT (decoder, "configuring iradio-mode");
-      g_object_set (source, "iradio-mode", TRUE, NULL);
-    }
-  }
-
   pspec = g_object_class_find_property (source_class, "connection-speed");
   if (pspec != NULL) {
     guint64 speed = decoder->connection_speed / 1000;