forked from centricular/gstcefsrc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gstcefdemux.h
48 lines (38 loc) · 1.17 KB
/
gstcefdemux.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef __GST_CEF_DEMUX_H__
#define __GST_CEF_DEMUX_H__
#include <gst/gst.h>
#include <gst/base/gstflowcombiner.h>
#include <gst/audio/audio.h>
G_BEGIN_DECLS
#define GST_TYPE_CEF_DEMUX \
(gst_cef_demux_get_type())
#define GST_CEF_DEMUX(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_CEF_DEMUX,GstCefDemux))
#define GST_CEF_DEMUX_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_CEF_DEMUX,GstCefDemuxClass))
#define GST_IS_CEF_DEMUX(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_CEF_DEMUX))
#define GST_IS_CEF_DEMUX_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_CEF_DEMUX))
typedef struct _GstCefDemux GstCefDemux;
typedef struct _GstCefDemuxClass GstCefDemuxClass;
struct _GstCefDemux {
GstElement parent;
gboolean need_stream_start;
gboolean need_caps;
gboolean need_segment;
gboolean need_discont;
GstPad *vsrcpad;
GstPad *asrcpad;
GList *cef_audio_stream_start_events;
GstEvent *vcaps_event;
GstFlowCombiner *flow_combiner;
GstClockTime last_audio_time;
GstAudioInfo audio_info;
};
struct _GstCefDemuxClass {
GstElementClass parent_class;
};
GType gst_cef_demux_get_type (void);
G_END_DECLS
#endif /* __GST_CEF_DEMUX_H__ */