adaptivedemux: prefix the statistics message name macro
authorPhilippe Normand <philn@igalia.com>
Mon, 7 Sep 2015 14:57:05 +0000 (16:57 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 17 Sep 2015 16:39:27 +0000 (17:39 +0100)
Keep old define around for now.

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

ext/hls/gsthlsdemux.c
gst-libs/gst/adaptivedemux/gstadaptivedemux.c
gst-libs/gst/adaptivedemux/gstadaptivedemux.h

index eb238e1b21a4f9722d2c8044e6652c271df1aca7..91178e2379e52e21fd55344e35e5b0be464bd2b1 100644 (file)
@@ -1059,7 +1059,7 @@ retry_failover_protection:
     main_uri = gst_m3u8_client_get_uri (demux->client);
     gst_element_post_message (GST_ELEMENT_CAST (demux),
         gst_message_new_element (GST_OBJECT_CAST (demux),
-            gst_structure_new (STATISTICS_MESSAGE_NAME,
+            gst_structure_new (GST_ADAPTIVE_DEMUX_STATISTICS_MESSAGE_NAME,
                 "manifest-uri", G_TYPE_STRING,
                 main_uri, "uri", G_TYPE_STRING,
                 uri, "bitrate", G_TYPE_INT, new_bandwidth, NULL)));
index d43fdc9538f25083df193ea1b9f359f790a2de4e..9f74c658a9e554636f1d7196339635f49be3e6a2 100644 (file)
@@ -484,7 +484,7 @@ gst_adaptive_demux_sink_event (GstPad * pad, GstObject * parent,
 
       gst_element_post_message (GST_ELEMENT_CAST (demux),
           gst_message_new_element (GST_OBJECT_CAST (demux),
-              gst_structure_new (STATISTICS_MESSAGE_NAME,
+              gst_structure_new (GST_ADAPTIVE_DEMUX_STATISTICS_MESSAGE_NAME,
                   "manifest-uri", G_TYPE_STRING,
                   demux->manifest_uri, "uri", G_TYPE_STRING,
                   demux->manifest_uri,
@@ -2558,7 +2558,7 @@ gst_adaptive_demux_stream_advance_fragment_unlocked (GstAdaptiveDemux * demux,
   /* FIXME - url has no indication of byte ranges for subsegments */
   gst_element_post_message (GST_ELEMENT_CAST (demux),
       gst_message_new_element (GST_OBJECT_CAST (demux),
-          gst_structure_new (STATISTICS_MESSAGE_NAME,
+          gst_structure_new (GST_ADAPTIVE_DEMUX_STATISTICS_MESSAGE_NAME,
               "manifest-uri", G_TYPE_STRING,
               demux->manifest_uri, "uri", G_TYPE_STRING,
               stream->fragment.uri, "fragment-start-time",
index 3876dc64595743c50e00a8683f50ae9dec8548e0..09de08ae094b78d86b0ba21bed1dd6b0eb5298af 100644 (file)
@@ -63,7 +63,19 @@ G_BEGIN_DECLS
 
 #define GST_ADAPTIVE_DEMUX_STREAM_NEED_HEADER(obj) (((GstAdaptiveDemuxStream *) (obj))->need_header)
 
-#define STATISTICS_MESSAGE_NAME "adaptive-streaming-statistics"
+/**
+ * GST_ADAPTIVE_DEMUX_STATISTICS_MESSAGE_NAME:
+ *
+ * Name of the ELEMENT type messages posted by dashdemux with statistics.
+ *
+ * Since: 1.6
+ */
+#define GST_ADAPTIVE_DEMUX_STATISTICS_MESSAGE_NAME "adaptive-streaming-statistics"
+
+/* FIXME: remove STATISTICS_MESSAGE_NAME in 1.7.x */
+#ifndef GST_DISABLE_DEPRECATED
+#define STATISTICS_MESSAGE_NAME GST_ADAPTIVE_DEMUX_STATISTICS_MESSAGE_NAME
+#endif
 
 #define GST_MANIFEST_GET_LOCK(d) (&(GST_ADAPTIVE_DEMUX_CAST(d)->manifest_lock))
 #define GST_MANIFEST_LOCK(d) (g_mutex_lock (GST_MANIFEST_GET_LOCK (d)))