mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
ext/wavpack/gstwavpackenc.c: Minor clean-up: use enum values instead of hardcoded constants (#395536).
Original commit message from CVS: Patch by: Sebastian Dröge <slomo@circular-chaos.org> * ext/wavpack/gstwavpackenc.c: (gst_wavpack_enc_mode_get_type), (gst_wavpack_enc_correction_mode_get_type), (gst_wavpack_enc_joint_stereo_mode_get_type): Minor clean-up: use enum values instead of hardcoded constants (#395536).
This commit is contained in:
parent
d7294ac13e
commit
18ba3efeba
2 changed files with 21 additions and 11 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
2007-01-11 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
Patch by: Sebastian Dröge <slomo@circular-chaos.org>
|
||||||
|
|
||||||
|
* ext/wavpack/gstwavpackenc.c: (gst_wavpack_enc_mode_get_type),
|
||||||
|
(gst_wavpack_enc_correction_mode_get_type),
|
||||||
|
(gst_wavpack_enc_joint_stereo_mode_get_type):
|
||||||
|
Minor clean-up: use enum values instead of hardcoded constants (#395536).
|
||||||
|
|
||||||
2007-01-11 Tim-Philipp Müller <tim at centricular dot net>
|
2007-01-11 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* gst/mve/gstmvedemux.c: (gst_mve_demux_get_src_query_types),
|
* gst/mve/gstmvedemux.c: (gst_mve_demux_get_src_query_types),
|
||||||
|
|
|
@ -168,13 +168,13 @@ gst_wavpack_enc_mode_get_type (void)
|
||||||
#if 0
|
#if 0
|
||||||
/* Very Fast Compression is not supported yet, but will be supported
|
/* Very Fast Compression is not supported yet, but will be supported
|
||||||
* in future wavpack versions */
|
* in future wavpack versions */
|
||||||
{0, "Very Fast Compression", "veryfast"},
|
{GST_WAVPACK_ENC_MODE_VERY_FAST, "Very Fast Compression", "veryfast"},
|
||||||
#endif
|
#endif
|
||||||
{1, "Fast Compression", "fast"},
|
{GST_WAVPACK_ENC_MODE_FAST, "Fast Compression", "fast"},
|
||||||
{2, "Normal Compression", "normal"},
|
{GST_WAVPACK_ENC_MODE_DEFAULT, "Normal Compression", "normal"},
|
||||||
{3, "High Compression", "high"},
|
{GST_WAVPACK_ENC_MODE_HIGH, "High Compression", "high"},
|
||||||
#ifndef WAVPACK_OLD_API
|
#ifndef WAVPACK_OLD_API
|
||||||
{4, "Very High Compression", "veryhigh"},
|
{GST_WAVPACK_ENC_MODE_VERY_HIGH, "Very High Compression", "veryhigh"},
|
||||||
#endif
|
#endif
|
||||||
{0, NULL, NULL}
|
{0, NULL, NULL}
|
||||||
};
|
};
|
||||||
|
@ -199,9 +199,10 @@ gst_wavpack_enc_correction_mode_get_type (void)
|
||||||
|
|
||||||
if (qtype == 0) {
|
if (qtype == 0) {
|
||||||
static const GEnumValue values[] = {
|
static const GEnumValue values[] = {
|
||||||
{0, "Create no correction file", "off"},
|
{GST_WAVPACK_CORRECTION_MODE_OFF, "Create no correction file", "off"},
|
||||||
{1, "Create correction file", "on"},
|
{GST_WAVPACK_CORRECTION_MODE_ON, "Create correction file", "on"},
|
||||||
{2, "Create optimized correction file", "optimized"},
|
{GST_WAVPACK_CORRECTION_MODE_OPTIMIZED,
|
||||||
|
"Create optimized correction file", "optimized"},
|
||||||
{0, NULL, NULL}
|
{0, NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -225,9 +226,9 @@ gst_wavpack_enc_joint_stereo_mode_get_type (void)
|
||||||
|
|
||||||
if (qtype == 0) {
|
if (qtype == 0) {
|
||||||
static const GEnumValue values[] = {
|
static const GEnumValue values[] = {
|
||||||
{0, "auto", "auto"},
|
{GST_WAVPACK_JS_MODE_AUTO, "auto", "auto"},
|
||||||
{1, "left/right", "leftright"},
|
{GST_WAVPACK_JS_MODE_LEFT_RIGHT, "left/right", "leftright"},
|
||||||
{2, "mid/side", "midside"},
|
{GST_WAVPACK_JS_MODE_MID_SIDE, "mid/side", "midside"},
|
||||||
{0, NULL, NULL}
|
{0, NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue