Fixing indentation

Original commit message from CVS:
Fixing indentation
This commit is contained in:
Julien Moutte 2003-06-16 10:22:39 +00:00
parent 5ee54c03c0
commit 8860bd5ac5
3 changed files with 1889 additions and 1958 deletions

File diff suppressed because it is too large Load diff

View file

@ -40,36 +40,44 @@
* playing state. * playing state.
*/ */
typedef enum { typedef enum
GST_PLAY_OK, {
GST_PLAY_UNKNOWN_MEDIA, GST_PLAY_OK,
GST_PLAY_CANNOT_PLAY, GST_PLAY_UNKNOWN_MEDIA,
GST_PLAY_ERROR, GST_PLAY_CANNOT_PLAY,
} GstPlayReturn; GST_PLAY_ERROR,
}
GstPlayReturn;
typedef enum { typedef enum
GST_PLAY_PIPE_AUDIO, {
GST_PLAY_PIPE_AUDIO_THREADED, GST_PLAY_PIPE_AUDIO,
GST_PLAY_PIPE_AUDIO_HYPER_THREADED, GST_PLAY_PIPE_AUDIO_THREADED,
GST_PLAY_PIPE_VIDEO, GST_PLAY_PIPE_AUDIO_HYPER_THREADED,
GST_PLAY_PIPE_VIDEO_VISUALISATION, GST_PLAY_PIPE_VIDEO,
} GstPlayPipeType; GST_PLAY_PIPE_VIDEO_VISUALISATION,
}
GstPlayPipeType;
typedef enum { typedef enum
GST_PLAY_ERROR_FAKESINK, {
GST_PLAY_ERROR_THREAD, GST_PLAY_ERROR_FAKESINK,
GST_PLAY_ERROR_QUEUE, GST_PLAY_ERROR_THREAD,
GST_PLAY_ERROR_GNOMEVFSSRC, GST_PLAY_ERROR_QUEUE,
GST_PLAY_ERROR_VOLUME, GST_PLAY_ERROR_GNOMEVFSSRC,
GST_PLAY_ERROR_COLORSPACE, GST_PLAY_ERROR_VOLUME,
GST_PLAY_ERROR_LAST, GST_PLAY_ERROR_COLORSPACE,
} GstPlayError; GST_PLAY_ERROR_LAST,
}
GstPlayError;
typedef enum { typedef enum
GST_PLAY_SINK_TYPE_AUDIO, {
GST_PLAY_SINK_TYPE_VIDEO, GST_PLAY_SINK_TYPE_AUDIO,
GST_PLAY_SINK_TYPE_ANY, GST_PLAY_SINK_TYPE_VIDEO,
} GstPlaySinkType; GST_PLAY_SINK_TYPE_ANY,
}
GstPlaySinkType;
#define GST_PLAY_ERROR gst_play_error_quark () #define GST_PLAY_ERROR gst_play_error_quark ()
@ -80,168 +88,131 @@ typedef enum {
#define GST_IS_PLAY_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_PLAY)) #define GST_IS_PLAY_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_PLAY))
#define GST_PLAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PLAY, GstPlayClass)) #define GST_PLAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PLAY, GstPlayClass))
typedef struct _GstPlay GstPlay; typedef struct _GstPlay GstPlay;
typedef struct _GstPlayClass GstPlayClass; typedef struct _GstPlayClass GstPlayClass;
typedef struct _GstPlayIdleData GstPlayIdleData; typedef struct _GstPlayIdleData GstPlayIdleData;
typedef guint (*GstPlayTimeoutAdd) ( guint interval, typedef guint (*GstPlayTimeoutAdd) (guint interval,
GSourceFunc function, GSourceFunc function, gpointer data);
gpointer data); typedef guint (*GstPlayIdleAdd) (GSourceFunc function, gpointer data);
typedef guint (*GstPlayIdleAdd) (GSourceFunc function, gpointer data);
struct _GstPlay struct _GstPlay
{ {
GObject parent; GObject parent;
gboolean (*setup_pipeline) (GstPlay *play, GError **error);
void (*teardown_pipeline) (GstPlay *play);
gboolean (*set_data_src) (GstPlay *play, GstElement *datasrc);
gboolean (*set_autoplugger) (GstPlay *play, GstElement *autoplugger);
gboolean (*set_video_sink) (GstPlay *play, GstElement *videosink);
gboolean (*set_audio_sink) (GstPlay *play, GstElement *audiosink);
/* core elements */
GstElement *pipeline;
GstElement *volume;
GstElement *source;
GstElement *autoplugger;
GstElement *video_sink;
GstElement *video_sink_element;
GstElement *audio_sink;
GstElement *audio_sink_element;
GstElement *visualisation_sink_element;
GstDParamManager *vol_dpman; gboolean (*setup_pipeline) (GstPlay * play, GError ** error);
GstDParam *vol_dparam; void (*teardown_pipeline) (GstPlay * play);
GHashTable *other_elements; gboolean (*set_data_src) (GstPlay * play, GstElement * datasrc);
gboolean (*set_autoplugger) (GstPlay * play, GstElement * autoplugger);
gboolean (*set_video_sink) (GstPlay * play, GstElement * videosink);
gboolean (*set_audio_sink) (GstPlay * play, GstElement * audiosink);
GstClock *clock; /* core elements */
GstElement *pipeline;
GstElement *volume;
GstElement *source;
GstElement *autoplugger;
GstElement *video_sink;
GstElement *video_sink_element;
GstElement *audio_sink;
GstElement *audio_sink_element;
GstElement *visualisation_sink_element;
gboolean need_stream_length; GstDParamManager *vol_dpman;
gboolean need_seek; GstDParam *vol_dparam;
gint time_seconds; GHashTable *other_elements;
gint get_length_attempt;
gint64 seek_time;
gint64 time_nanos;
gint64 length_nanos;
GAsyncQueue *signal_queue;
GstPlayTimeoutAdd timeout_add_func; GstClock *clock;
GstPlayIdleAdd idle_add_func;
gboolean need_stream_length;
gboolean need_seek;
gint time_seconds;
gint get_length_attempt;
gint64 seek_time;
gint64 time_nanos;
gint64 length_nanos;
GAsyncQueue *signal_queue;
GstPlayTimeoutAdd timeout_add_func;
GstPlayIdleAdd idle_add_func;
}; };
struct _GstPlayClass struct _GstPlayClass
{ {
GObjectClass parent_class; GObjectClass parent_class;
/* signals */ /* signals */
void (*information) (GstPlay* play, void (*information) (GstPlay * play,
GstObject* element, GstObject * element, GParamSpec * param);
GParamSpec *param); void (*pipeline_error) (GstPlay * play, GstElement * element, char *error);
void (*pipeline_error) (GstPlay* play, void (*state_changed) (GstPlay * play,
GstElement* element, GstElementState old_state,
char *error); GstElementState new_state);
void (*state_changed) (GstPlay* play, void (*stream_end) (GstPlay * play);
GstElementState old_state, void (*time_tick) (GstPlay * play, gint64 time_nanos);
GstElementState new_state); void (*stream_length) (GstPlay * play, gint64 length_nanos);
void (*stream_end) (GstPlay* play); void (*have_xid) (GstPlay * play, gint xid);
void (*time_tick) (GstPlay* play, void (*have_vis_xid) (GstPlay * play, gint xid);
gint64 time_nanos); void (*have_video_size) (GstPlay * play, gint width, gint height);
void (*stream_length) (GstPlay* play,
gint64 length_nanos);
void (*have_xid) (GstPlay* play,
gint xid);
void (*have_vis_xid) (GstPlay* play,
gint xid);
void (*have_video_size) (GstPlay* play,
gint width,
gint height);
}; };
struct _GstPlayIdleData struct _GstPlayIdleData
{ {
GSourceFunc func; GSourceFunc func;
gpointer data; gpointer data;
}; };
void void gst_play_seek_to_time (GstPlay * play, gint64 time_nanos);
gst_play_seek_to_time ( GstPlay *play,
gint64 time_nanos); void gst_play_need_new_video_window (GstPlay * play);
void void
gst_play_need_new_video_window (GstPlay *play); gst_play_set_idle_timeout_funcs (GstPlay * play,
GstPlayTimeoutAdd timeout_add_func,
void GstPlayIdleAdd idle_add_func);
gst_play_set_idle_timeout_funcs ( GstPlay *play, GstElement *gst_play_get_sink_element (GstPlay * play,
GstPlayTimeoutAdd timeout_add_func, GstElement * element,
GstPlayIdleAdd idle_add_func); GstPlaySinkType sink_type);
GstElement*
gst_play_get_sink_element ( GstPlay *play,
GstElement *element,
GstPlaySinkType sink_type);
/* Set/Get state */ /* Set/Get state */
GstElementStateReturn GstElementStateReturn
gst_play_set_state ( GstPlay *play, gst_play_set_state (GstPlay * play, GstElementState state);
GstElementState state); GstElementState gst_play_get_state (GstPlay * play);
GstElementState
gst_play_get_state (GstPlay *play);
/* Set/Get location */ /* Set/Get location */
gboolean gboolean gst_play_set_location (GstPlay * play, const gchar * location);
gst_play_set_location ( GstPlay *play, gchar *gst_play_get_location (GstPlay * play);
const gchar *location);
gchar*
gst_play_get_location (GstPlay *play);
/* Set/Get volume */ /* Set/Get volume */
void void gst_play_set_volume (GstPlay * play, gfloat volume);
gst_play_set_volume ( GstPlay *play, gfloat gst_play_get_volume (GstPlay * play);
gfloat volume);
gfloat
gst_play_get_volume (GstPlay *play);
/* Set/Get mute */ /* Set/Get mute */
void void gst_play_set_mute (GstPlay * play, gboolean mute);
gst_play_set_mute ( GstPlay *play, gboolean gst_play_get_mute (GstPlay * play);
gboolean mute);
gboolean
gst_play_get_mute (GstPlay *play);
/* Set sinks and data src */ /* Set sinks and data src */
gboolean gst_play_set_data_src (GstPlay * play, GstElement * data_src);
gboolean gst_play_set_video_sink (GstPlay * play, GstElement * video_sink);
gboolean gboolean
gst_play_set_data_src ( GstPlay *play, gst_play_set_visualisation_video_sink (GstPlay * play,
GstElement *data_src); GstElement * video_sink);
gboolean gboolean gst_play_set_audio_sink (GstPlay * play, GstElement * audio_sink);
gst_play_set_video_sink ( GstPlay *play,
GstElement *video_sink);
gboolean
gst_play_set_visualisation_video_sink ( GstPlay *play,
GstElement *video_sink);
gboolean
gst_play_set_audio_sink ( GstPlay *play,
GstElement *audio_sink);
gboolean gboolean
gst_play_set_visualisation_element ( GstPlay *play, gst_play_set_visualisation_element (GstPlay * play, GstElement * element);
GstElement *element);
gboolean
gst_play_connect_visualisation ( GstPlay *play,
gboolean connect);
GType
gst_play_get_type (void);
GstPlay * gboolean gst_play_connect_visualisation (GstPlay * play, gboolean connect);
gst_play_new ( GstPlayPipeType pipe_type,
GError **error); GType gst_play_get_type (void);
GstPlay *gst_play_new (GstPlayPipeType pipe_type, GError ** error);
#endif /* __GSTPLAY_H__ */ #endif /* __GSTPLAY_H__ */

File diff suppressed because it is too large Load diff