1 /* GStreamer Stream Splitter
2 * Copyright (C) 2010 Edward Hervey <edward.hervey@collabora.co.uk>
3 * (C) 2009 Nokia Corporation
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
21 #ifndef __GST_STREAMSPLITTER_H__
22 #define __GST_STREAMSPLITTER_H__
26 #define GST_TYPE_STREAM_SPLITTER (gst_stream_splitter_get_type())
27 #define GST_STREAM_SPLITTER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_STREAM_SPLITTER,GstStreamSplitter))
28 #define GST_STREAM_SPLITTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_STREAM_SPLITTER,GstStreamSplitterClass))
29 #define GST_IS_STREAM_SPLITTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_STREAM_SPLITTER))
30 #define GST_IS_STREAM_SPLITTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_STREAM_SPLITTER))
32 typedef struct _GstStreamSplitter GstStreamSplitter;
33 typedef struct _GstStreamSplitterClass GstStreamSplitterClass;
35 struct _GstStreamSplitter {
42 * * the list of srcpads
45 /* Currently activated srcpad */
50 /* List of pending in-band events */
51 GList *pending_events;
54 struct _GstStreamSplitterClass {
55 GstElementClass parent;
58 GType gst_stream_splitter_get_type(void);
60 GstElement *gst_stream_splitter_new (gchar *name);
62 #endif /* __GST_STREAMSPLITTER_H__ */