mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
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:
parent
28cb14f6ae
commit
69b2bd42d9
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
2008-07-31 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2008-07-29 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
2008-07-29 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
||||||
|
|
||||||
* ext/lame/gstlame.c: (gst_lame_class_init), (gst_lame_init),
|
* ext/lame/gstlame.c: (gst_lame_class_init), (gst_lame_init),
|
||||||
|
|
|
@ -405,7 +405,7 @@ gst_lame_class_init (GstLameClass * klass)
|
||||||
g_param_spec_int ("bitrate", "Bitrate (kb/s)",
|
g_param_spec_int ("bitrate", "Bitrate (kb/s)",
|
||||||
"Bitrate in kbit/sec (8, 16, 24, 32, 40, 48, 56, 64, 80, 96, "
|
"Bitrate in kbit/sec (8, 16, 24, 32, 40, 48, 56, 64, 80, 96, "
|
||||||
"112, 128, 160, 192, 224, 256 or 320)",
|
"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 */
|
/* compression ratio set to 0.0 by default otherwise it overrides the bitrate setting */
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass),
|
g_object_class_install_property (G_OBJECT_CLASS (klass),
|
||||||
ARG_COMPRESSION_RATIO, g_param_spec_float ("compression_ratio",
|
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.original = lame_get_original (lgf);
|
||||||
gst_lame_default_settings.error_protection = lame_get_error_protection (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.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 =
|
gst_lame_default_settings.disable_reservoir =
|
||||||
lame_get_disable_reservoir (lgf);
|
lame_get_disable_reservoir (lgf);
|
||||||
gst_lame_default_settings.vbr = lame_get_VBR (lgf);
|
gst_lame_default_settings.vbr = lame_get_VBR (lgf);
|
||||||
|
|
Loading…
Reference in a new issue