summaryrefslogtreecommitdiffstats
path: root/gst-libs/gst/play/play.old.h
diff options
context:
space:
mode:
authorJulien Moutte <julien@moutte.net>2003-02-06 23:17:37 +0000
committerJulien Moutte <julien@moutte.net>2003-02-06 23:17:37 +0000
commit5b37927c139950d2b7642d7493809b4d5b88f659 (patch)
tree1dd71e2c9d110fd509fec52e953ed1e319fd9e3c /gst-libs/gst/play/play.old.h
parentee1f58a95f1c44ebd85ac3c0b4bdd0eaae925cb8 (diff)
downloadgst-plugins-bad-5b37927c139950d2b7642d7493809b4d5b88f659.tar.gz
gst-plugins-bad-5b37927c139950d2b7642d7493809b4d5b88f659.tar.bz2
gst-plugins-bad-5b37927c139950d2b7642d7493809b4d5b88f659.zip
Code cleanup and reorganization
Original commit message from CVS: Code cleanup and reorganization I ll now be able to make nice gtk-doc for this lib Fixed latency bug on async_queue pop X video window now comes immediatly
Diffstat (limited to 'gst-libs/gst/play/play.old.h')
-rw-r--r--gst-libs/gst/play/play.old.h108
1 files changed, 76 insertions, 32 deletions
diff --git a/gst-libs/gst/play/play.old.h b/gst-libs/gst/play/play.old.h
index acf777c9..f9b14116 100644
--- a/gst-libs/gst/play/play.old.h
+++ b/gst-libs/gst/play/play.old.h
@@ -2,6 +2,7 @@
* Copyright (C) 1999,2000,2001,2002 Erik Walthinsen <omega@cse.ogi.edu>
* 2000,2001,2002 Wim Taymans <wtay@chello.be>
* 2002 Steve Baker <steve@stevebaker.org>
+ * 2003 Julien Moutte <julien@moutte.net>
*
* play.h: GstPlay object code
*
@@ -76,7 +77,9 @@ typedef struct _GstPlay GstPlay;
typedef struct _GstPlayClass GstPlayClass;
typedef struct _GstPlayIdleData GstPlayIdleData;
-typedef guint (*GstPlayTimeoutAdd) (guint interval, GSourceFunc function, gpointer data);
+typedef guint (*GstPlayTimeoutAdd) ( guint interval,
+ GSourceFunc function,
+ gpointer data);
typedef guint (*GstPlayIdleAdd) (GSourceFunc function, gpointer data);
struct _GstPlay
@@ -117,10 +120,6 @@ struct _GstPlay
gint64 time_nanos;
gint64 length_nanos;
- guint tick_timeout_id;
- guint idle_timeout_id;
- guint idle_signal_id;
-
GAsyncQueue *signal_queue;
GstPlayTimeoutAdd timeout_add_func;
@@ -132,13 +131,22 @@ struct _GstPlayClass
GObjectClass parent_class;
/* signals */
- void (*information) (GstPlay* play, GstElement* element, GParamSpec *param);
- void (*state_changed) (GstPlay* play, GstElementState old_state, GstElementState new_state);
- void (*stream_end) (GstPlay* play);
- void (*time_tick) (GstPlay* play, gint64 time_nanos);
- void (*stream_length) (GstPlay* play, gint64 length_nanos);
- void (*have_xid) (GstPlay* play, gint xid);
- void (*have_video_size) (GstPlay* play, gint width, gint height);
+ void (*information) ( GstPlay* play,
+ GstElement* element,
+ GParamSpec *param);
+ void (*state_changed) ( GstPlay* play,
+ GstElementState old_state,
+ GstElementState new_state);
+ void (*stream_end) ( GstPlay* play);
+ void (*time_tick) ( GstPlay* play,
+ gint64 time_nanos);
+ void (*stream_length) ( GstPlay* play,
+ gint64 length_nanos);
+ void (*have_xid) ( GstPlay* play,
+ gint xid);
+ void (*have_video_size) ( GstPlay* play,
+ gint width,
+ gint height);
};
struct _GstPlayIdleData
@@ -147,35 +155,71 @@ struct _GstPlayIdleData
gpointer data;
};
-GType gst_play_get_type (void);
-GstPlay* gst_play_new (GstPlayPipeType pipe_type, GError **error);
+void
+gst_play_seek_to_time ( GstPlay *play,
+ gint64 time_nanos);
-void gst_play_seek_to_time (GstPlay *play, gint64 time_nanos);
+void
+gst_play_need_new_video_window (GstPlay *play);
-GstElement* gst_play_get_sink_element (GstPlay *play, GstElement *element);
+void
+gst_play_set_idle_timeout_funcs ( GstPlay *play,
+ GstPlayTimeoutAdd timeout_add_func,
+ GstPlayIdleAdd idle_add_func);
+GstElement*
+gst_play_get_sink_element ( GstPlay *play,
+ GstElement *element);
-gboolean gst_play_set_data_src (GstPlay *play, GstElement *data_src);
-gboolean gst_play_set_video_sink (GstPlay *play, GstElement *element);
-gboolean gst_play_set_audio_sink (GstPlay *play, GstElement *element);
-void gst_play_need_new_video_window (GstPlay *play);
+/* Set/Get state */
-GstElementStateReturn gst_play_set_state (GstPlay *play, GstElementState state);
-GstElementState gst_play_get_state (GstPlay *play);
+GstElementStateReturn
+gst_play_set_state ( GstPlay *play,
+ GstElementState state);
+GstElementState
+gst_play_get_state (GstPlay *play);
-gboolean gst_play_set_location (GstPlay *play, const gchar *location);
-gchar* gst_play_get_location (GstPlay *play);
+/* Set/Get location */
-void gst_play_set_volume (GstPlay *play, gfloat volume);
-gfloat gst_play_get_volume (GstPlay *play);
+gboolean
+gst_play_set_location ( GstPlay *play,
+ const gchar *location);
+gchar*
+gst_play_get_location (GstPlay *play);
-void gst_play_set_mute (GstPlay *play, gboolean mute);
-gboolean gst_play_get_mute (GstPlay *play);
+/* Set/Get volume */
-void gst_play_set_idle_timeout_funcs (GstPlay *play, GstPlayTimeoutAdd timeout_add_func, GstPlayIdleAdd idle_add_func);
+void
+gst_play_set_volume ( GstPlay *play,
+ gfloat volume);
+gfloat
+gst_play_get_volume (GstPlay *play);
-#endif /* __GSTPLAY_H__ */
+/* Set/Get mute */
+
+void
+gst_play_set_mute ( GstPlay *play,
+ gboolean mute);
+gboolean
+gst_play_get_mute (GstPlay *play);
+
+/* Set sinks and data src */
-/* modelines */
-/* vim:set ts=8:sw=8:noet */
+gboolean
+gst_play_set_data_src ( GstPlay *play,
+ GstElement *data_src);
+gboolean
+gst_play_set_video_sink ( GstPlay *play,
+ GstElement *video_sink);
+gboolean
+gst_play_set_audio_sink ( GstPlay *play,
+ GstElement *audio_sink);
+GType
+gst_play_get_type (void);
+
+GstPlay *
+gst_play_new ( GstPlayPipeType pipe_type,
+ GError **error);
+
+#endif /* __GSTPLAY_H__ */