1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/gst-gmyth/playbinmaemo/gstplaybinmaemo.h Sat Jul 14 17:20:54 2007 +0100
1.3 @@ -0,0 +1,73 @@
1.4 +/* GStreamer
1.5 + *
1.6 + * This library is free software; you can redistribute it and/or
1.7 + * modify it under the terms of the GNU Library General Public
1.8 + * License as published by the Free Software Foundation; either
1.9 + * version 2 of the License, or (at your option) any later version.
1.10 + *
1.11 + * This library is distributed in the hope that it will be useful,
1.12 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.13 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1.14 + * Library General Public License for more details.
1.15 + *
1.16 + * You should have received a copy of the GNU Library General Public
1.17 + * License along with this library; if not, write to the
1.18 + * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
1.19 + * Boston, MA 02111-1307, USA.
1.20 + */
1.21 +
1.22 +#ifndef __GST_PLAYBINMAEMO_H__
1.23 +#define __GST_PLAYBINMAEMO_H__
1.24 +
1.25 +#include <gst/gst.h>
1.26 +
1.27 +G_BEGIN_DECLS
1.28 +
1.29 +#define GST_TYPE_PLAY_BIN_MAEMO \
1.30 + (gst_play_bin_maemo_get_type())
1.31 +#define GST_PLAY_BIN_MAEMO(obj) \
1.32 + (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_PLAY_BIN_MAEMO,GstPlayBinMaemo))
1.33 +#define GST_PLAY_BIN_MAEMO_CLASS(klass) \
1.34 + (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_PLAY_BIN_MAEMO,GstPlayBinMaemoClass))
1.35 +#define GST_IS_PLAY_BIN_MAEMO(obj) \
1.36 + (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_PLAY_BIN_MAEMO))
1.37 +#define GST_IS_PLAY_BIN_MAEMO_CLASS(klass) \
1.38 + (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_PLAY_BIN_MAEMO))
1.39 +#define GST_PLAY_BIN_MAEMO_GET_CLASS(obj) \
1.40 + (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_PLAY_BIN_MAEMO,GstPlayBinMaemoClass))
1.41 +
1.42 +typedef struct _GstPlayBinMaemo GstPlayBinMaemo;
1.43 +typedef struct _GstPlayBinMaemoClass GstPlayBinMaemoClass;
1.44 +
1.45 +struct _GstPlayBinMaemo {
1.46 + GstPipeline pipeline;
1.47 +
1.48 + /* properties */
1.49 + guint64 queue_size;
1.50 + guint64 queue_min_threshold;
1.51 + gboolean is_stream;
1.52 + glong xid;
1.53 + guint volume;
1.54 +
1.55 + /* currently loaded media */
1.56 + gboolean need_rebuild;
1.57 + gchar *uri;
1.58 + GstElement *source;
1.59 + GstElement *decoder;
1.60 + GstElement *queue;
1.61 + GstElement *volume_element;
1.62 + GstElement *sink_video;
1.63 + GSList *sinks;
1.64 + GList *factories;
1.65 +};
1.66 +
1.67 +struct _GstPlayBinMaemoClass {
1.68 + GstPipelineClass parent_class;
1.69 +};
1.70 +
1.71 +GType gst_play_bin_maemo_get_type (void);
1.72 +
1.73 +G_END_DECLS
1.74 +
1.75 +#endif /* __GST_PLAYBINMAEMO_H__ */
1.76 +