diff --git a/ext/lame/gstlame.h b/ext/lame/gstlame.h
index 14546a84c84b0fa8977bd251f72b4da1ac834f89..f12a47d4f1bc5f39d2a5246d34aa76933905ca4c 100644 (file)
--- a/ext/lame/gstlame.h
+++ b/ext/lame/gstlame.h
G_BEGIN_DECLS
#include <lame/lame.h>
+#include <gst/audio/gstaudioencoder.h>
+#include <gst/base/gstadapter.h>
#define GST_TYPE_LAME \
(gst_lame_get_type())
* Opaque data structure.
*/
struct _GstLame {
- GstElement element;
+ GstAudioEncoder element;
/*< private >*/
- GstPad *srcpad, *sinkpad;
-
- gboolean init_error; /* an error occured in the instance init function */
gint samplerate;
+ gint out_samplerate;
gint num_channels;
gboolean setup;
gboolean emphasis;
gint preset;
- /* track this so we don't send a last buffer in eos handler after error */
- GstFlowReturn last_flow;
-
lame_global_flags *lgf;
- /* time tracker */
- guint64 last_ts, last_offs, last_duration, eos_ts;
+ GstAdapter *adapter;
};
struct _GstLameClass {
- GstElementClass parent_class;
+ GstAudioEncoderClass parent_class;
};
GType gst_lame_get_type(void);
+gboolean gst_lame_register (GstPlugin * plugin);
G_END_DECLS
-
#endif /* __GST_LAME_H__ */