summaryrefslogtreecommitdiffstats
path: root/ext/musepack/gstmusepackdec.h
diff options
context:
space:
mode:
authorEdgard Lima <edgard.lima@indt.org.br>2005-11-22 15:09:28 +0000
committerEdgard Lima <edgard.lima@indt.org.br>2005-11-22 15:09:28 +0000
commita5ef8aef56c1639abcc23b7ba19c00225a041e89 (patch)
treebc33c90323654be703b24750180402ae4dd35dca /ext/musepack/gstmusepackdec.h
parentee0e50b84d25f2886d41c9629c01edc376237fcd (diff)
downloadgst-plugins-bad-a5ef8aef56c1639abcc23b7ba19c00225a041e89.tar.gz
gst-plugins-bad-a5ef8aef56c1639abcc23b7ba19c00225a041e89.tar.bz2
gst-plugins-bad-a5ef8aef56c1639abcc23b7ba19c00225a041e89.zip
Musepackdec ported to 0.9. There is still a small problem to be solved, after the end of file, the pipeline doens't s...
Original commit message from CVS: Musepackdec ported to 0.9. There is still a small problem to be solved, after the end of file, the pipeline doens't stop.
Diffstat (limited to 'ext/musepack/gstmusepackdec.h')
-rw-r--r--ext/musepack/gstmusepackdec.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/ext/musepack/gstmusepackdec.h b/ext/musepack/gstmusepackdec.h
index a4493c4a..3b931cad 100644
--- a/ext/musepack/gstmusepackdec.h
+++ b/ext/musepack/gstmusepackdec.h
@@ -21,9 +21,9 @@
#define __GST_MUSEPACK_DEC_H__
#include <gst/gst.h>
-#include <gst/bytestream/bytestream.h>
-#include <musepack/musepack.h>
-#include "gstmusepackreader.h"
+//#include <gst/bytestream/bytestream.h>
+#include <mpcdec/mpcdec.h>
+//#include "gstmusepackreader.h"
G_BEGIN_DECLS
@@ -45,7 +45,8 @@ typedef struct _GstMusepackDec {
/* pads */
GstPad *srcpad, *sinkpad;
- GstByteStream *bs;
+ // GstByteStream *bs;
+ guint64 offset;
/* MUSEPACK_DEC object */
mpc_decoder *d;
@@ -59,7 +60,7 @@ typedef struct _GstMusepackDec {
guint64 pos, len;
/* seeks */
- gdouble flush_pending, seek_pending;
+ gdouble flush_pending, seek_pending, eos;
guint64 seek_time;
} GstMusepackDec;
@@ -69,6 +70,10 @@ typedef struct _GstMusepackDecClass {
GType gst_musepackdec_get_type (void);
+extern gboolean gst_musepackdec_src_convert (GstPad * pad,
+ GstFormat src_format,
+ gint64 src_value, GstFormat * dest_format, gint64 * dest_value);
+
G_END_DECLS
#endif /* __GST_MUSEPACK_DEC_H__ */