diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2014-11-02 17:18:12 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2014-11-02 17:19:34 +0000 |
commit | f216b7bb116c0bad30a49bd28a362b3ff283c88a (patch) | |
tree | f99da32bd6d5adb67aa35815f874624064e9479d | |
parent | 69ee564d5c097e0e5e8c7d0b5ff5962d697ecf5e (diff) | |
download | gstreamer-plugins-bad-f216b7bb116c0bad30a49bd28a362b3ff283c88a.tar.gz |
Sprinkle some G_PARAM_DEPRECATED and #ifndef GST_REMOVE_DEPRECATED
-rw-r--r-- | ext/dash/gstdashdemux.c | 4 | ||||
-rwxr-xr-x | ext/hls/gsthlsdemux.c | 4 | ||||
-rw-r--r-- | ext/smoothstreaming/gstmssdemux.c | 4 | ||||
-rw-r--r-- | sys/dvb/dvbbasebin.c | 2 | ||||
-rw-r--r-- | sys/dvb/gstdvbsrc.c | 5 |
5 files changed, 15 insertions, 4 deletions
diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c index d9402d8c8..65943f423 100644 --- a/ext/dash/gstdashdemux.c +++ b/ext/dash/gstdashdemux.c @@ -270,12 +270,14 @@ gst_dash_demux_class_init (GstDashDemuxClass * klass) gobject_class->get_property = gst_dash_demux_get_property; gobject_class->dispose = gst_dash_demux_dispose; +#ifndef GST_REMOVE_DEPRECATED g_object_class_install_property (gobject_class, PROP_MAX_BUFFERING_TIME, g_param_spec_uint ("max-buffering-time", "Maximum buffering time", "Maximum number of seconds of buffer accumulated during playback" "(deprecated)", 2, G_MAXUINT, DEFAULT_MAX_BUFFERING_TIME, - G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_DEPRECATED)); +#endif g_object_class_install_property (gobject_class, PROP_BANDWIDTH_USAGE, g_param_spec_float ("bandwidth-usage", diff --git a/ext/hls/gsthlsdemux.c b/ext/hls/gsthlsdemux.c index 411ecd275..292c985af 100755 --- a/ext/hls/gsthlsdemux.c +++ b/ext/hls/gsthlsdemux.c @@ -185,12 +185,14 @@ gst_hls_demux_class_init (GstHLSDemuxClass * klass) 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_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_DEPRECATED)); +#endif g_object_class_install_property (gobject_class, PROP_BITRATE_LIMIT, g_param_spec_float ("bitrate-limit", diff --git a/ext/smoothstreaming/gstmssdemux.c b/ext/smoothstreaming/gstmssdemux.c index 7af97e854..5028c3930 100644 --- a/ext/smoothstreaming/gstmssdemux.c +++ b/ext/smoothstreaming/gstmssdemux.c @@ -171,12 +171,14 @@ gst_mss_demux_class_init (GstMssDemuxClass * klass) 0, G_MAXUINT / 1000, DEFAULT_CONNECTION_SPEED, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); +#ifndef GST_REMOVE_DEPRECATED g_object_class_install_property (gobject_class, PROP_MAX_QUEUE_SIZE_BUFFERS, g_param_spec_uint ("max-queue-size-buffers", "Max queue size in buffers", "Maximum buffers that can be stored in each internal stream queue " "(0 = infinite) (deprecated)", 0, G_MAXUINT, DEFAULT_MAX_QUEUE_SIZE_BUFFERS, - G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_DEPRECATED)); +#endif g_object_class_install_property (gobject_class, PROP_BITRATE_LIMIT, g_param_spec_float ("bitrate-limit", diff --git a/sys/dvb/dvbbasebin.c b/sys/dvb/dvbbasebin.c index 2617f3f10..d14b014fd 100644 --- a/sys/dvb/dvbbasebin.c +++ b/sys/dvb/dvbbasebin.c @@ -284,7 +284,9 @@ dvb_base_bin_class_init (DvbBaseBinClass * klass) {PROP_FREQUENCY, "frequency"}, {PROP_POLARITY, "polarity"}, {PROP_SYMBOL_RATE, "symbol-rate"}, +#ifndef GST_REMOVE_DEPRECATED {PROP_BANDWIDTH, "bandwidth"}, +#endif {PROP_CODE_RATE_HP, "code-rate-hp"}, {PROP_CODE_RATE_LP, "code-rate-lp"}, {PROP_GUARD, "guard"}, diff --git a/sys/dvb/gstdvbsrc.c b/sys/dvb/gstdvbsrc.c index 4fe40286f..b50e1f954 100644 --- a/sys/dvb/gstdvbsrc.c +++ b/sys/dvb/gstdvbsrc.c @@ -689,10 +689,13 @@ gst_dvbsrc_class_init (GstDvbSrcClass * klass) "(DVB-T) Bandwidth in Hz", 0, G_MAXUINT, DEFAULT_BANDWIDTH_HZ, GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); +#ifndef GST_REMOVE_DEPRECATED g_object_class_install_property (gobject_class, ARG_DVBSRC_BANDWIDTH, g_param_spec_enum ("bandwidth", "bandwidth", "(DVB-T) Bandwidth. Deprecated", GST_TYPE_DVBSRC_BANDWIDTH, - DEFAULT_BANDWIDTH, GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); + DEFAULT_BANDWIDTH, + GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE | G_PARAM_DEPRECATED)); +#endif /* FIXME: DVB-C, DVB-S, DVB-S2 named it as innerFEC */ g_object_class_install_property (gobject_class, ARG_DVBSRC_CODE_RATE_HP, |