mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
faac: Use PROP_ instead of ARG_ for the property enums
This commit is contained in:
parent
6244704089
commit
7f0aa4061e
1 changed files with 21 additions and 21 deletions
|
@ -88,12 +88,12 @@ static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
ARG_0,
|
PROP_0,
|
||||||
ARG_BITRATE,
|
PROP_BITRATE,
|
||||||
ARG_PROFILE,
|
PROP_PROFILE,
|
||||||
ARG_TNS,
|
PROP_TNS,
|
||||||
ARG_MIDSIDE,
|
PROP_MIDSIDE,
|
||||||
ARG_SHORTCTL
|
PROP_SHORTCTL
|
||||||
};
|
};
|
||||||
|
|
||||||
static void gst_faac_base_init (GstFaacClass * klass);
|
static void gst_faac_base_init (GstFaacClass * klass);
|
||||||
|
@ -236,21 +236,21 @@ gst_faac_class_init (GstFaacClass * klass)
|
||||||
gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_faac_finalize);
|
gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_faac_finalize);
|
||||||
|
|
||||||
/* properties */
|
/* properties */
|
||||||
g_object_class_install_property (gobject_class, ARG_BITRATE,
|
g_object_class_install_property (gobject_class, PROP_BITRATE,
|
||||||
g_param_spec_int ("bitrate", "Bitrate (bps)", "Bitrate in bits/sec",
|
g_param_spec_int ("bitrate", "Bitrate (bps)", "Bitrate in bits/sec",
|
||||||
8 * 1000, 320 * 1000, FAAC_DEFAULT_BITRATE,
|
8 * 1000, 320 * 1000, FAAC_DEFAULT_BITRATE,
|
||||||
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||||
g_object_class_install_property (gobject_class, ARG_PROFILE,
|
g_object_class_install_property (gobject_class, PROP_PROFILE,
|
||||||
g_param_spec_enum ("profile", "Profile", "MPEG/AAC encoding profile",
|
g_param_spec_enum ("profile", "Profile", "MPEG/AAC encoding profile",
|
||||||
GST_TYPE_FAAC_PROFILE, FAAC_DEFAULT_PROFILE,
|
GST_TYPE_FAAC_PROFILE, FAAC_DEFAULT_PROFILE,
|
||||||
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||||
g_object_class_install_property (gobject_class, ARG_TNS,
|
g_object_class_install_property (gobject_class, PROP_TNS,
|
||||||
g_param_spec_boolean ("tns", "TNS", "Use temporal noise shaping",
|
g_param_spec_boolean ("tns", "TNS", "Use temporal noise shaping",
|
||||||
FAAC_DEFAULT_TNS, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
FAAC_DEFAULT_TNS, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||||
g_object_class_install_property (gobject_class, ARG_MIDSIDE,
|
g_object_class_install_property (gobject_class, PROP_MIDSIDE,
|
||||||
g_param_spec_boolean ("midside", "Midside", "Allow mid/side encoding",
|
g_param_spec_boolean ("midside", "Midside", "Allow mid/side encoding",
|
||||||
FAAC_DEFAULT_MIDSIDE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
FAAC_DEFAULT_MIDSIDE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||||
g_object_class_install_property (gobject_class, ARG_SHORTCTL,
|
g_object_class_install_property (gobject_class, PROP_SHORTCTL,
|
||||||
g_param_spec_enum ("shortctl", "Block type",
|
g_param_spec_enum ("shortctl", "Block type",
|
||||||
"Block type encorcing",
|
"Block type encorcing",
|
||||||
GST_TYPE_FAAC_SHORTCTL, FAAC_DEFAULT_SHORTCTL,
|
GST_TYPE_FAAC_SHORTCTL, FAAC_DEFAULT_SHORTCTL,
|
||||||
|
@ -847,19 +847,19 @@ gst_faac_set_property (GObject * object,
|
||||||
GST_OBJECT_LOCK (faac);
|
GST_OBJECT_LOCK (faac);
|
||||||
|
|
||||||
switch (prop_id) {
|
switch (prop_id) {
|
||||||
case ARG_BITRATE:
|
case PROP_BITRATE:
|
||||||
faac->bitrate = g_value_get_int (value);
|
faac->bitrate = g_value_get_int (value);
|
||||||
break;
|
break;
|
||||||
case ARG_PROFILE:
|
case PROP_PROFILE:
|
||||||
faac->profile = g_value_get_enum (value);
|
faac->profile = g_value_get_enum (value);
|
||||||
break;
|
break;
|
||||||
case ARG_TNS:
|
case PROP_TNS:
|
||||||
faac->tns = g_value_get_boolean (value);
|
faac->tns = g_value_get_boolean (value);
|
||||||
break;
|
break;
|
||||||
case ARG_MIDSIDE:
|
case PROP_MIDSIDE:
|
||||||
faac->midside = g_value_get_boolean (value);
|
faac->midside = g_value_get_boolean (value);
|
||||||
break;
|
break;
|
||||||
case ARG_SHORTCTL:
|
case PROP_SHORTCTL:
|
||||||
faac->shortctl = g_value_get_enum (value);
|
faac->shortctl = g_value_get_enum (value);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -879,19 +879,19 @@ gst_faac_get_property (GObject * object,
|
||||||
GST_OBJECT_LOCK (faac);
|
GST_OBJECT_LOCK (faac);
|
||||||
|
|
||||||
switch (prop_id) {
|
switch (prop_id) {
|
||||||
case ARG_BITRATE:
|
case PROP_BITRATE:
|
||||||
g_value_set_int (value, faac->bitrate);
|
g_value_set_int (value, faac->bitrate);
|
||||||
break;
|
break;
|
||||||
case ARG_PROFILE:
|
case PROP_PROFILE:
|
||||||
g_value_set_enum (value, faac->profile);
|
g_value_set_enum (value, faac->profile);
|
||||||
break;
|
break;
|
||||||
case ARG_TNS:
|
case PROP_TNS:
|
||||||
g_value_set_boolean (value, faac->tns);
|
g_value_set_boolean (value, faac->tns);
|
||||||
break;
|
break;
|
||||||
case ARG_MIDSIDE:
|
case PROP_MIDSIDE:
|
||||||
g_value_set_boolean (value, faac->midside);
|
g_value_set_boolean (value, faac->midside);
|
||||||
break;
|
break;
|
||||||
case ARG_SHORTCTL:
|
case PROP_SHORTCTL:
|
||||||
g_value_set_enum (value, faac->shortctl);
|
g_value_set_enum (value, faac->shortctl);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue