basesrc: Downgrade EOS warning
[platform/upstream/gstreamer.git] / plugins / elements / gststreamiddemux.h
1 /*
2  * GStreamer streamiddemux eleement
3  *
4  * Copyright 2013 LGE Corporation.
5  *  @author: Hoonhee Lee <hoonhee.lee@lge.com>
6  *  @author: Jeongseok Kim <jeongseok.kim@lge.com>
7  *  @author: Wonchul Lee <wonchul86.lee@lge.com>
8  *
9  * gststreamiddemux.h: Simple stream-id-demultiplexer element
10  *
11  * This library is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU Lesser General Public
13  * License as published by the Free Software Foundation; either
14  * version 2.1 of the License, or (at your option) any later version.
15  *
16  * This library is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19  * Lesser General Public License for more details.
20  *
21  * You should have received a copy of the GNU Lesser General Public
22  * License along with this library; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
24  */
25
26 #ifndef __GST_STREAMID_DEMUX_H__
27 #define __GST_STREAMID_DEMUX_H__
28
29 #include <gst/gst.h>
30
31 G_BEGIN_DECLS
32 #define GST_TYPE_STREAMID_DEMUX \
33   (gst_streamid_demux_get_type())
34 #define GST_STREAMID_DEMUX(obj) \
35   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_STREAMID_DEMUX, GstStreamidDemux))
36 #define GST_STREAMID_DEMUX_CLASS(klass) \
37   (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_STREAMID_DEMUX, GstStreamidDemuxClass))
38 #define GST_IS_STREAMID_DEMUX(obj) \
39   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_STREAMID_DEMUX))
40 #define GST_IS_STREAMID_DEMUX_CLASS(klass) \
41   (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_STREAMID_DEMUX))
42 typedef struct _GstStreamidDemux GstStreamidDemux;
43 typedef struct _GstStreamidDemuxClass GstStreamidDemuxClass;
44
45 /**
46  * GstStreamidDemux:
47  *
48  * The opaque #GstStreamidDemux data structure.
49  */
50 struct _GstStreamidDemux
51 {
52   GstElement element;
53
54   GstPad *sinkpad;
55
56   guint nb_srcpads;
57   GstPad *active_srcpad;
58
59   /* This table contains srcpad and stream-id */
60   GHashTable *stream_id_pairs;
61 };
62
63 struct _GstStreamidDemuxClass
64 {
65   GstElementClass parent_class;
66 };
67
68 G_GNUC_INTERNAL GType gst_streamid_demux_get_type (void);
69
70 G_END_DECLS
71 #endif /* __GST_STREAMID_DEMUX_H__ */