mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-01 06:01:04 +00:00
Change agressive -> aggressive.
Original commit message from CVS: Change agressive -> aggressive.
This commit is contained in:
parent
8aa9339f50
commit
804522784e
1 changed files with 8 additions and 8 deletions
|
@ -58,7 +58,7 @@ struct _GstAudioConvert {
|
||||||
GstPad * sink;
|
GstPad * sink;
|
||||||
GstPad * src;
|
GstPad * src;
|
||||||
/* properties */
|
/* properties */
|
||||||
gboolean agressive;
|
gboolean aggressive;
|
||||||
/* caps: 0 = sink, 1 = src, so always convert from 0 to 1 */
|
/* caps: 0 = sink, 1 = src, so always convert from 0 to 1 */
|
||||||
gboolean caps_set[2];
|
gboolean caps_set[2];
|
||||||
gint law[2];
|
gint law[2];
|
||||||
|
@ -113,7 +113,7 @@ enum {
|
||||||
};
|
};
|
||||||
enum {
|
enum {
|
||||||
ARG_0,
|
ARG_0,
|
||||||
ARG_AGRESSIVE,
|
ARG_AGGRESSIVE,
|
||||||
};
|
};
|
||||||
|
|
||||||
/*** GSTREAMER PROTOTYPES *****************************************************/
|
/*** GSTREAMER PROTOTYPES *****************************************************/
|
||||||
|
@ -209,7 +209,7 @@ gst_audio_convert_class_init (GstAudioConvertClass *klass)
|
||||||
|
|
||||||
parent_class = g_type_class_ref(GST_TYPE_ELEMENT);
|
parent_class = g_type_class_ref(GST_TYPE_ELEMENT);
|
||||||
|
|
||||||
g_object_class_install_property(G_OBJECT_CLASS(klass), ARG_AGRESSIVE,
|
g_object_class_install_property(G_OBJECT_CLASS(klass), ARG_AGGRESSIVE,
|
||||||
g_param_spec_boolean("aggressive","aggressive mode","if true, tries any possible format before giving up",
|
g_param_spec_boolean("aggressive","aggressive mode","if true, tries any possible format before giving up",
|
||||||
FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
|
FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
|
||||||
|
|
||||||
|
@ -247,8 +247,8 @@ gst_audio_convert_set_property (GObject *object, guint prop_id, const GValue *va
|
||||||
audio_convert = GST_AUDIO_CONVERT(object);
|
audio_convert = GST_AUDIO_CONVERT(object);
|
||||||
|
|
||||||
switch (prop_id) {
|
switch (prop_id) {
|
||||||
case ARG_AGRESSIVE:
|
case ARG_AGGRESSIVE:
|
||||||
audio_convert->agressive = g_value_get_boolean (value);
|
audio_convert->aggressive = g_value_get_boolean (value);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||||
|
@ -266,8 +266,8 @@ gst_audio_convert_get_property (GObject *object, guint prop_id, GValue *value, G
|
||||||
audio_convert = GST_AUDIO_CONVERT(object);
|
audio_convert = GST_AUDIO_CONVERT(object);
|
||||||
|
|
||||||
switch (prop_id) {
|
switch (prop_id) {
|
||||||
case ARG_AGRESSIVE:
|
case ARG_AGGRESSIVE:
|
||||||
g_value_set_boolean (value, audio_convert->agressive);
|
g_value_set_boolean (value, audio_convert->aggressive);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||||
|
@ -467,7 +467,7 @@ gst_audio_convert_set_caps (GstPad *pad)
|
||||||
for (width = 4; width >= 1; width--) {
|
for (width = 4; width >= 1; width--) {
|
||||||
|
|
||||||
/* width */
|
/* width */
|
||||||
for (depth = width * 8; depth >= 1; depth -= this->agressive ? 1 : 8) {
|
for (depth = width * 8; depth >= 1; depth -= this->aggressive ? 1 : 8) {
|
||||||
|
|
||||||
/* rate - not supported yet*/
|
/* rate - not supported yet*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue