Sprinkle some G_PARAM_DEPRECATED and #ifndef GST_REMOVE_DEPRECATED

This commit is contained in:
Tim-Philipp Müller 2014-11-02 17:18:12 +00:00
parent 69ee564d5c
commit f216b7bb11
5 changed files with 15 additions and 4 deletions

View file

@ -270,12 +270,14 @@ gst_dash_demux_class_init (GstDashDemuxClass * klass)
gobject_class->get_property = gst_dash_demux_get_property; gobject_class->get_property = gst_dash_demux_get_property;
gobject_class->dispose = gst_dash_demux_dispose; gobject_class->dispose = gst_dash_demux_dispose;
#ifndef GST_REMOVE_DEPRECATED
g_object_class_install_property (gobject_class, PROP_MAX_BUFFERING_TIME, g_object_class_install_property (gobject_class, PROP_MAX_BUFFERING_TIME,
g_param_spec_uint ("max-buffering-time", "Maximum buffering time", g_param_spec_uint ("max-buffering-time", "Maximum buffering time",
"Maximum number of seconds of buffer accumulated during playback" "Maximum number of seconds of buffer accumulated during playback"
"(deprecated)", "(deprecated)",
2, G_MAXUINT, DEFAULT_MAX_BUFFERING_TIME, 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_object_class_install_property (gobject_class, PROP_BANDWIDTH_USAGE,
g_param_spec_float ("bandwidth-usage", g_param_spec_float ("bandwidth-usage",

View file

@ -185,12 +185,14 @@ gst_hls_demux_class_init (GstHLSDemuxClass * klass)
gobject_class->get_property = gst_hls_demux_get_property; gobject_class->get_property = gst_hls_demux_get_property;
gobject_class->dispose = gst_hls_demux_dispose; gobject_class->dispose = gst_hls_demux_dispose;
#ifndef GST_REMOVE_DEPRECATED
g_object_class_install_property (gobject_class, PROP_FRAGMENTS_CACHE, g_object_class_install_property (gobject_class, PROP_FRAGMENTS_CACHE,
g_param_spec_uint ("fragments-cache", "Fragments cache", g_param_spec_uint ("fragments-cache", "Fragments cache",
"Number of fragments needed to be cached to start playing " "Number of fragments needed to be cached to start playing "
"(DEPRECATED: Has no effect since 1.3.1)", "(DEPRECATED: Has no effect since 1.3.1)",
1, G_MAXUINT, DEFAULT_FRAGMENTS_CACHE, 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_object_class_install_property (gobject_class, PROP_BITRATE_LIMIT,
g_param_spec_float ("bitrate-limit", g_param_spec_float ("bitrate-limit",

View file

@ -171,12 +171,14 @@ gst_mss_demux_class_init (GstMssDemuxClass * klass)
0, G_MAXUINT / 1000, DEFAULT_CONNECTION_SPEED, 0, G_MAXUINT / 1000, DEFAULT_CONNECTION_SPEED,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
#ifndef GST_REMOVE_DEPRECATED
g_object_class_install_property (gobject_class, PROP_MAX_QUEUE_SIZE_BUFFERS, 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", g_param_spec_uint ("max-queue-size-buffers", "Max queue size in buffers",
"Maximum buffers that can be stored in each internal stream queue " "Maximum buffers that can be stored in each internal stream queue "
"(0 = infinite) (deprecated)", 0, G_MAXUINT, "(0 = infinite) (deprecated)", 0, G_MAXUINT,
DEFAULT_MAX_QUEUE_SIZE_BUFFERS, 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_object_class_install_property (gobject_class, PROP_BITRATE_LIMIT,
g_param_spec_float ("bitrate-limit", g_param_spec_float ("bitrate-limit",

View file

@ -284,7 +284,9 @@ dvb_base_bin_class_init (DvbBaseBinClass * klass)
{PROP_FREQUENCY, "frequency"}, {PROP_FREQUENCY, "frequency"},
{PROP_POLARITY, "polarity"}, {PROP_POLARITY, "polarity"},
{PROP_SYMBOL_RATE, "symbol-rate"}, {PROP_SYMBOL_RATE, "symbol-rate"},
#ifndef GST_REMOVE_DEPRECATED
{PROP_BANDWIDTH, "bandwidth"}, {PROP_BANDWIDTH, "bandwidth"},
#endif
{PROP_CODE_RATE_HP, "code-rate-hp"}, {PROP_CODE_RATE_HP, "code-rate-hp"},
{PROP_CODE_RATE_LP, "code-rate-lp"}, {PROP_CODE_RATE_LP, "code-rate-lp"},
{PROP_GUARD, "guard"}, {PROP_GUARD, "guard"},

View file

@ -689,10 +689,13 @@ gst_dvbsrc_class_init (GstDvbSrcClass * klass)
"(DVB-T) Bandwidth in Hz", 0, G_MAXUINT, DEFAULT_BANDWIDTH_HZ, "(DVB-T) Bandwidth in Hz", 0, G_MAXUINT, DEFAULT_BANDWIDTH_HZ,
GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE)); GST_PARAM_MUTABLE_PLAYING | G_PARAM_READWRITE));
#ifndef GST_REMOVE_DEPRECATED
g_object_class_install_property (gobject_class, ARG_DVBSRC_BANDWIDTH, g_object_class_install_property (gobject_class, ARG_DVBSRC_BANDWIDTH,
g_param_spec_enum ("bandwidth", "bandwidth", g_param_spec_enum ("bandwidth", "bandwidth",
"(DVB-T) Bandwidth. Deprecated", GST_TYPE_DVBSRC_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 */ /* FIXME: DVB-C, DVB-S, DVB-S2 named it as innerFEC */
g_object_class_install_property (gobject_class, ARG_DVBSRC_CODE_RATE_HP, g_object_class_install_property (gobject_class, ARG_DVBSRC_CODE_RATE_HP,