summaryrefslogtreecommitdiff
path: root/ext/timidity/gstwildmidi.h
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2009-08-31 17:33:32 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2009-08-31 18:48:03 +0200
commit25caf9f743256e602ee0f7ad216ff51d892c7de3 (patch)
tree36a0b94e2ea5911c8d5cdd5fa310dbad8a1f2462 /ext/timidity/gstwildmidi.h
parent4ef773164ac14d4ba93d976fac7ff6c98a5be90b (diff)
downloadgstreamer-plugins-bad-25caf9f743256e602ee0f7ad216ff51d892c7de3.tar.gz
wildmidi: set caps on pad
Set the caps on the pad and use those caps instead of keeping a separate caps pointer around. Fix some whitespace.
Diffstat (limited to 'ext/timidity/gstwildmidi.h')
-rw-r--r--ext/timidity/gstwildmidi.h49
1 files changed, 25 insertions, 24 deletions
diff --git a/ext/timidity/gstwildmidi.h b/ext/timidity/gstwildmidi.h
index 37815ea60..84802f735 100644
--- a/ext/timidity/gstwildmidi.h
+++ b/ext/timidity/gstwildmidi.h
@@ -1,6 +1,6 @@
/*
* gstwildmidi - wildmidi plugin for gstreamer
- *
+ *
* Copyright 2007 Wouter Paesen <wouter@blue-gate.be>
*
* This library is free software; you can redistribute it and/or
@@ -19,8 +19,8 @@
* Boston, MA 02111-1307, USA.
*
* Wrapper element for libtimidity. This element works in pull
- * based mode because that's essentially how libwildmidi works.
- * We create a libwildmidi stream that operates on the srcpad.
+ * based mode because that's essentially how libwildmidi works.
+ * We create a libwildmidi stream that operates on the srcpad.
* The sinkpad is in pull mode.
*/
@@ -32,6 +32,7 @@
#include <wildmidi_lib.h>
G_BEGIN_DECLS
+
#define GST_TYPE_WILDMIDI \
(gst_wildmidi_get_type())
#define GST_WILDMIDI(obj) \
@@ -42,39 +43,38 @@ G_BEGIN_DECLS
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_WILDMIDI))
#define GST_IS_WILDMIDI_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_WILDMIDI))
+
typedef struct _GstWildmidi GstWildmidi;
typedef struct _GstWildmidiClass GstWildmidiClass;
struct _GstWildmidi
{
- GstElement element;
+ GstElement element;
- GstPad *sinkpad, *srcpad;
+ GstPad *sinkpad, *srcpad;
- /* input stream properties */
- gint64 mididata_size, mididata_offset;
- gchar *mididata;
- gboolean mididata_filled;
+ /* input stream properties */
+ gint64 mididata_size, mididata_offset;
+ gchar *mididata;
+ gboolean mididata_filled;
- midi *song;
+ midi *song;
- /* output data */
- gboolean o_new_segment, o_segment_changed, o_seek;
- GstSegment o_segment[1];
- gint64 o_len;
+ /* output data */
+ gboolean o_new_segment, o_segment_changed, o_seek;
+ GstSegment o_segment[1];
+ gint64 o_len;
- /* format of the stream */
- gint64 bytes_per_frame;
- GstClockTime time_per_frame;
+ /* format of the stream */
+ gint64 bytes_per_frame;
+ GstClockTime time_per_frame;
- /* options */
- gboolean accurate_seek;
+ /* options */
+ gboolean accurate_seek;
- /* wildmidi settings */
- gboolean high_quality;
- gboolean linear_volume;
-
- GstCaps *out_caps;
+ /* wildmidi settings */
+ gboolean high_quality;
+ gboolean linear_volume;
};
struct _GstWildmidiClass
@@ -85,4 +85,5 @@ struct _GstWildmidiClass
GType gst_wildmidi_get_type (void);
G_END_DECLS
+
#endif /* __GST_WILDMIDI_H__ */