ext/lame/gstlame.c: Use the default for the strict-iso property too.

Original commit message from CVS:
* ext/lame/gstlame.c: (gst_lame_class_init),
(gst_lame_get_default_settings):
Use the default for the strict-iso property too.
Allow a bitrate setting of 0, which lets lame choose the default value
and which makes it possible to set the compression-ratio property.
This commit is contained in:
Sebastian Dröge 2008-07-31 14:24:27 +00:00
parent 252e387a89
commit ee74e87e50

View file

@ -405,7 +405,7 @@ gst_lame_class_init (GstLameClass * klass)
g_param_spec_int ("bitrate", "Bitrate (kb/s)",
"Bitrate in kbit/sec (8, 16, 24, 32, 40, 48, 56, 64, 80, 96, "
"112, 128, 160, 192, 224, 256 or 320)",
8, 320, gst_lame_default_settings.bitrate, G_PARAM_READWRITE));
0, 320, gst_lame_default_settings.bitrate, G_PARAM_READWRITE));
/* compression ratio set to 0.0 by default otherwise it overrides the bitrate setting */
g_object_class_install_property (G_OBJECT_CLASS (klass),
ARG_COMPRESSION_RATIO, g_param_spec_float ("compression_ratio",
@ -1321,7 +1321,7 @@ gst_lame_get_default_settings (void)
gst_lame_default_settings.original = lame_get_original (lgf);
gst_lame_default_settings.error_protection = lame_get_error_protection (lgf);
gst_lame_default_settings.extension = lame_get_extension (lgf);
gst_lame_default_settings.strict_iso = FALSE; /* lame_get_strict_ISO (lgf); */
gst_lame_default_settings.strict_iso = lame_get_strict_ISO (lgf);
gst_lame_default_settings.disable_reservoir =
lame_get_disable_reservoir (lgf);
gst_lame_default_settings.vbr = lame_get_VBR (lgf);