mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 05:31:15 +00:00
Sprinkle some G_PARAM_DEPRECATED and #ifndef GST_REMOVE_DEPRECATED
This commit is contained in:
parent
69ee564d5c
commit
f216b7bb11
5 changed files with 15 additions and 4 deletions
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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"},
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue