|
Packit |
971217 |
/* GStreamer Stream Splitter
|
|
Packit |
971217 |
* Copyright (C) 2010 Edward Hervey <edward.hervey@collabora.co.uk>
|
|
Packit |
971217 |
* (C) 2009 Nokia Corporation
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
971217 |
* modify it under the terms of the GNU Library General Public
|
|
Packit |
971217 |
* License as published by the Free Software Foundation; either
|
|
Packit |
971217 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
971217 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
971217 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
971217 |
* Library General Public License for more details.
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* You should have received a copy of the GNU Library General Public
|
|
Packit |
971217 |
* License along with this library; if not, write to the
|
|
Packit |
971217 |
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
Packit |
971217 |
* Boston, MA 02110-1301, USA.
|
|
Packit |
971217 |
*/
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#ifndef __GST_STREAMSPLITTER_H__
|
|
Packit |
971217 |
#define __GST_STREAMSPLITTER_H__
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#include <gst/gst.h>
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#define GST_TYPE_STREAM_SPLITTER (gst_stream_splitter_get_type())
|
|
Packit |
971217 |
#define GST_STREAM_SPLITTER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_STREAM_SPLITTER,GstStreamSplitter))
|
|
Packit |
971217 |
#define GST_STREAM_SPLITTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_STREAM_SPLITTER,GstStreamSplitterClass))
|
|
Packit |
971217 |
#define GST_IS_STREAM_SPLITTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_STREAM_SPLITTER))
|
|
Packit |
971217 |
#define GST_IS_STREAM_SPLITTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_STREAM_SPLITTER))
|
|
Packit |
971217 |
|
|
Packit |
971217 |
typedef struct _GstStreamSplitter GstStreamSplitter;
|
|
Packit |
971217 |
typedef struct _GstStreamSplitterClass GstStreamSplitterClass;
|
|
Packit |
971217 |
|
|
Packit |
971217 |
struct _GstStreamSplitter {
|
|
Packit |
971217 |
GstElement parent;
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GstPad *sinkpad;
|
|
Packit |
971217 |
|
|
Packit |
971217 |
/* lock protects:
|
|
Packit |
971217 |
* * the current pad
|
|
Packit |
971217 |
* * the list of srcpads
|
|
Packit |
971217 |
*/
|
|
Packit |
971217 |
GMutex lock;
|
|
Packit |
971217 |
/* Currently activated srcpad */
|
|
Packit |
971217 |
GstPad *current;
|
|
Packit |
971217 |
GList *srcpads;
|
|
Packit |
971217 |
guint32 cookie;
|
|
Packit |
971217 |
|
|
Packit |
971217 |
/* List of pending in-band events */
|
|
Packit |
971217 |
GList *pending_events;
|
|
Packit |
971217 |
};
|
|
Packit |
971217 |
|
|
Packit |
971217 |
struct _GstStreamSplitterClass {
|
|
Packit |
971217 |
GstElementClass parent;
|
|
Packit |
971217 |
};
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GType gst_stream_splitter_get_type(void);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GstElement *gst_stream_splitter_new (gchar *name);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#endif /* __GST_STREAMSPLITTER_H__ */
|