From 917b034238076cad63d00ea6499a9b2ce5fa3808 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 30 Aug 2015 17:41:23 +0100 Subject: [PATCH] hlsdemux: remove deprecated 'fragments-cache' property It's been non-functional for two cycles now, let's get rid of it. --- ext/hls/gsthlsdemux.c | 52 ------------------------------------------- 1 file changed, 52 deletions(-) diff --git a/ext/hls/gsthlsdemux.c b/ext/hls/gsthlsdemux.c index 1c05fa860a..827161d085 100644 --- a/ext/hls/gsthlsdemux.c +++ b/ext/hls/gsthlsdemux.c @@ -57,21 +57,7 @@ static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink", GST_DEBUG_CATEGORY_STATIC (gst_hls_demux_debug); #define GST_CAT_DEFAULT gst_hls_demux_debug -enum -{ - PROP_0, - - PROP_FRAGMENTS_CACHE, - PROP_LAST -}; - -#define DEFAULT_FRAGMENTS_CACHE 1 - /* GObject */ -static void gst_hls_demux_set_property (GObject * object, guint prop_id, - const GValue * value, GParamSpec * pspec); -static void gst_hls_demux_get_property (GObject * object, guint prop_id, - GValue * value, GParamSpec * pspec); static void gst_hls_demux_dispose (GObject * obj); /* GstElement */ @@ -146,19 +132,8 @@ gst_hls_demux_class_init (GstHLSDemuxClass * klass) element_class = (GstElementClass *) klass; adaptivedemux_class = (GstAdaptiveDemuxClass *) klass; - gobject_class->set_property = gst_hls_demux_set_property; - gobject_class->get_property = gst_hls_demux_get_property; gobject_class->dispose = gst_hls_demux_dispose; -#ifndef GST_REMOVE_DEPRECATED - g_object_class_install_property (gobject_class, PROP_FRAGMENTS_CACHE, - g_param_spec_uint ("fragments-cache", "Fragments cache", - "Number of fragments needed to be cached to start playing " - "(DEPRECATED: Has no effect since 1.3.1)", - 1, G_MAXUINT, DEFAULT_FRAGMENTS_CACHE, - G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_DEPRECATED)); -#endif - element_class->change_state = GST_DEBUG_FUNCPTR (gst_hls_demux_change_state); gst_element_class_add_pad_template (element_class, @@ -204,33 +179,6 @@ gst_hls_demux_init (GstHLSDemux * demux) demux->do_typefind = TRUE; } -static void -gst_hls_demux_set_property (GObject * object, guint prop_id, - const GValue * value, GParamSpec * pspec) -{ - switch (prop_id) { - case PROP_FRAGMENTS_CACHE: - break; - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); - break; - } -} - -static void -gst_hls_demux_get_property (GObject * object, guint prop_id, GValue * value, - GParamSpec * pspec) -{ - switch (prop_id) { - case PROP_FRAGMENTS_CACHE: - g_value_set_uint (value, 1); - break; - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); - break; - } -} - static GstStateChangeReturn gst_hls_demux_change_state (GstElement * element, GstStateChange transition) {