mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
ext/lame/gstlame.*: Make xingheader property non-functional, it's broken anyway after all (use xingmux instead).
Original commit message from CVS: * ext/lame/gstlame.c: (gst_lame_init), (gst_lame_set_property), (gst_lame_get_property), (gst_lame_setup): * ext/lame/gstlame.h: Make xingheader property non-functional, it's broken anyway after all (use xingmux instead).
This commit is contained in:
parent
6b67aca635
commit
dfdac6c84c
3 changed files with 13 additions and 14 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2006-03-28 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* ext/lame/gstlame.c: (gst_lame_init), (gst_lame_set_property),
|
||||||
|
(gst_lame_get_property), (gst_lame_setup):
|
||||||
|
* ext/lame/gstlame.h:
|
||||||
|
Make xingheader property non-functional, it's broken anyway
|
||||||
|
after all (use xingmux instead).
|
||||||
|
|
||||||
2006-03-28 Tim-Philipp Müller <tim at centricular dot net>
|
2006-03-28 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* ext/lame/gstlame.c: (gst_lame_sink_event):
|
* ext/lame/gstlame.c: (gst_lame_sink_event):
|
||||||
|
|
|
@ -217,10 +217,10 @@ enum
|
||||||
ARG_EMPHASIS,
|
ARG_EMPHASIS,
|
||||||
ARG_VBR_QUALITY,
|
ARG_VBR_QUALITY,
|
||||||
#ifdef GSTLAME_PRESET
|
#ifdef GSTLAME_PRESET
|
||||||
ARG_XINGHEADER,
|
ARG_XINGHEADER, /* FIXME: remove in 0.11 */
|
||||||
ARG_PRESET
|
ARG_PRESET
|
||||||
#else
|
#else
|
||||||
ARG_XINGHEADER
|
ARG_XINGHEADER /* FIXME: remove in 0.11 */
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -582,7 +582,6 @@ gst_lame_init (GstLame * lame)
|
||||||
lame->allow_diff_short = lame_get_allow_diff_short (lame->lgf);
|
lame->allow_diff_short = lame_get_allow_diff_short (lame->lgf);
|
||||||
lame->no_short_blocks = TRUE; /* lame_get_no_short_blocks (lame->lgf); */
|
lame->no_short_blocks = TRUE; /* lame_get_no_short_blocks (lame->lgf); */
|
||||||
lame->emphasis = lame_get_emphasis (lame->lgf);
|
lame->emphasis = lame_get_emphasis (lame->lgf);
|
||||||
lame->xingheader = FALSE;
|
|
||||||
lame->preset = 0;
|
lame->preset = 0;
|
||||||
lame_close (lame->lgf);
|
lame_close (lame->lgf);
|
||||||
lame->lgf = NULL;
|
lame->lgf = NULL;
|
||||||
|
@ -813,7 +812,6 @@ gst_lame_set_property (GObject * object, guint prop_id, const GValue * value,
|
||||||
lame->emphasis = g_value_get_boolean (value);
|
lame->emphasis = g_value_get_boolean (value);
|
||||||
break;
|
break;
|
||||||
case ARG_XINGHEADER:
|
case ARG_XINGHEADER:
|
||||||
lame->xingheader = g_value_get_boolean (value);
|
|
||||||
break;
|
break;
|
||||||
#ifdef GSTLAME_PRESET
|
#ifdef GSTLAME_PRESET
|
||||||
case ARG_PRESET:
|
case ARG_PRESET:
|
||||||
|
@ -931,7 +929,6 @@ gst_lame_get_property (GObject * object, guint prop_id, GValue * value,
|
||||||
g_value_set_boolean (value, lame->emphasis);
|
g_value_set_boolean (value, lame->emphasis);
|
||||||
break;
|
break;
|
||||||
case ARG_XINGHEADER:
|
case ARG_XINGHEADER:
|
||||||
g_value_set_boolean (value, lame->xingheader);
|
|
||||||
break;
|
break;
|
||||||
#ifdef GSTLAME_PRESET
|
#ifdef GSTLAME_PRESET
|
||||||
case ARG_PRESET:
|
case ARG_PRESET:
|
||||||
|
@ -1184,7 +1181,6 @@ gst_lame_setup (GstLame * lame)
|
||||||
CHECK_ERROR (lame_set_allow_diff_short (lame->lgf, lame->allow_diff_short));
|
CHECK_ERROR (lame_set_allow_diff_short (lame->lgf, lame->allow_diff_short));
|
||||||
CHECK_ERROR (lame_set_no_short_blocks (lame->lgf, lame->no_short_blocks));
|
CHECK_ERROR (lame_set_no_short_blocks (lame->lgf, lame->no_short_blocks));
|
||||||
CHECK_ERROR (lame_set_emphasis (lame->lgf, lame->emphasis));
|
CHECK_ERROR (lame_set_emphasis (lame->lgf, lame->emphasis));
|
||||||
CHECK_ERROR (lame_set_bWriteVbrTag (lame->lgf, lame->xingheader ? 1 : 0));
|
|
||||||
#ifdef GSTLAME_PRESET
|
#ifdef GSTLAME_PRESET
|
||||||
if (lame->preset > 0) {
|
if (lame->preset > 0) {
|
||||||
CHECK_ERROR (lame_set_preset (lame->lgf, lame->preset));
|
CHECK_ERROR (lame_set_preset (lame->lgf, lame->preset));
|
||||||
|
|
|
@ -24,9 +24,7 @@
|
||||||
|
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
G_BEGIN_DECLS
|
||||||
extern "C" {
|
|
||||||
#endif /* __cplusplus */
|
|
||||||
|
|
||||||
#include <lame/lame.h>
|
#include <lame/lame.h>
|
||||||
|
|
||||||
|
@ -38,7 +36,7 @@ extern "C" {
|
||||||
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_LAME,GstLameClass))
|
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_LAME,GstLameClass))
|
||||||
#define GST_IS_LAME(obj) \
|
#define GST_IS_LAME(obj) \
|
||||||
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_LAME))
|
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_LAME))
|
||||||
#define GST_IS_LAME_CLASS(obj) \
|
#define GST_IS_LAME_CLASS(klass) \
|
||||||
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_LAME))
|
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_LAME))
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
@ -91,7 +89,6 @@ struct _GstLame {
|
||||||
gboolean allow_diff_short;
|
gboolean allow_diff_short;
|
||||||
gboolean no_short_blocks;
|
gboolean no_short_blocks;
|
||||||
gboolean emphasis;
|
gboolean emphasis;
|
||||||
gboolean xingheader;
|
|
||||||
gint preset;
|
gint preset;
|
||||||
|
|
||||||
lame_global_flags *lgf;
|
lame_global_flags *lgf;
|
||||||
|
@ -110,9 +107,7 @@ struct _GstLameClass {
|
||||||
|
|
||||||
GType gst_lame_get_type(void);
|
GType gst_lame_get_type(void);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
G_END_DECLS
|
||||||
}
|
|
||||||
#endif /* __cplusplus */
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* __GST_LAME_H__ */
|
#endif /* __GST_LAME_H__ */
|
||||||
|
|
Loading…
Reference in a new issue