Do not answer to URI queries
authorDavid Corvoysier <david.corvoysier@orange.com>
Tue, 16 Oct 2012 09:44:26 +0000 (11:44 +0200)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Wed, 8 May 2013 21:13:56 +0000 (18:13 -0300)
ext/dash/gstdashdemux.c

index 3736c59..9dcce49 100644 (file)
@@ -718,30 +718,6 @@ gst_dash_demux_src_query (GstPad * pad, GstQuery * query)
           ret ? "TRUE" : "FALSE", GST_TIME_ARGS (duration));
       break;
     }
-    case GST_QUERY_URI:
-      if (dashdemux->client) {
-        const gchar *initializationURL;
-        gchar *header_uri;
-        /* GG: I would answer with the URI of the initialization segment, or,
-         * if there is no initialization segment, with the URI of the first segment
-         * as this are usually mp4 files */
-        if (!gst_mpd_client_get_next_header (dashdemux->client,
-                &initializationURL, 0)) {
-          if (strncmp (initializationURL, "http://", 7) != 0) {
-            header_uri =
-                g_strconcat (gst_mpdparser_get_baseURL (dashdemux->client),
-                initializationURL, NULL);
-          } else {
-            header_uri = g_strdup (initializationURL);
-          }
-          gst_query_set_uri (query, header_uri);
-          g_free (header_uri);
-          ret = TRUE;
-        } else {
-          ret = FALSE;
-        }
-      }
-      break;
     case GST_QUERY_SEEKING:{
       GstFormat fmt;
       gint64 stop = -1;