34 (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_PLAY_SINK, GstPlaySinkClass)) |
34 (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_PLAY_SINK, GstPlaySinkClass)) |
35 #define GST_IS_PLAY_SINK(obj) \ |
35 #define GST_IS_PLAY_SINK(obj) \ |
36 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_PLAY_SINK)) |
36 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_PLAY_SINK)) |
37 #define GST_IS_PLAY_SINK_CLASS(klass) \ |
37 #define GST_IS_PLAY_SINK_CLASS(klass) \ |
38 (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_PLAY_SINK)) |
38 (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_PLAY_SINK)) |
39 #define GST_PLAY_SINK_CAST(obj) \ |
|
40 ((GstPlaySink*)(obj)) |
|
41 |
39 |
42 /** |
40 /** |
43 * GstPlaySinkType: |
41 * GstPlaySinkType: |
44 * @GST_PLAY_SINK_TYPE_AUDIO: A non-raw audio pad |
42 * @GST_PLAY_SINK_TYPE_AUDIO: A non-raw audio pad |
45 * @GST_PLAY_SINK_TYPE_AUDIO_RAW: a raw audio pad |
43 * @GST_PLAY_SINK_TYPE_AUDIO_RAW: a raw audio pad |
46 * @GST_PLAY_SINK_TYPE_VIDEO: a non-raw video pad |
44 * @GST_PLAY_SINK_TYPE_VIDEO: a non-raw video pad |
47 * @GST_PLAY_SINK_TYPE_VIDEO_RAW: a raw video pad |
45 * @GST_PLAY_SINK_TYPE_VIDEO_RAW: a raw video pad |
48 * @GST_PLAY_SINK_TYPE_TEXT: a raw text pad |
46 * @GST_PLAY_SINK_TYPE_TEXT: a raw text pad |
49 * @GST_PLAY_SINK_TYPE_SUBPIC: a subpicture pad |
|
50 * @GST_PLAY_SINK_TYPE_LAST: the last type |
47 * @GST_PLAY_SINK_TYPE_LAST: the last type |
51 * @GST_PLAY_SINK_TYPE_FLUSHING: a flushing pad, used when shutting down |
|
52 * |
48 * |
53 * Types of pads that can be requested from the sinks. |
49 * Types of pads that can be requested from the sinks. |
54 */ |
50 */ |
55 typedef enum { |
51 typedef enum { |
56 GST_PLAY_SINK_TYPE_AUDIO = 0, |
52 GST_PLAY_SINK_TYPE_AUDIO = 0, |
57 GST_PLAY_SINK_TYPE_AUDIO_RAW = 1, |
53 GST_PLAY_SINK_TYPE_AUDIO_RAW = 1, |
58 GST_PLAY_SINK_TYPE_VIDEO = 2, |
54 GST_PLAY_SINK_TYPE_VIDEO = 2, |
59 GST_PLAY_SINK_TYPE_VIDEO_RAW = 3, |
55 GST_PLAY_SINK_TYPE_VIDEO_RAW = 3, |
60 GST_PLAY_SINK_TYPE_TEXT = 4, |
56 GST_PLAY_SINK_TYPE_TEXT = 4, |
61 GST_PLAY_SINK_TYPE_SUBPIC = 5, |
57 GST_PLAY_SINK_TYPE_LAST = 5 |
62 GST_PLAY_SINK_TYPE_LAST = 6, |
|
63 |
|
64 /* this is a dummy pad */ |
|
65 GST_PLAY_SINK_TYPE_FLUSHING = 7 |
|
66 } GstPlaySinkType; |
58 } GstPlaySinkType; |
67 |
59 |
68 typedef struct _GstPlaySink GstPlaySink; |
60 typedef struct _GstPlaySink GstPlaySink; |
69 typedef struct _GstPlaySinkClass GstPlaySinkClass; |
61 typedef struct _GstPlaySinkClass GstPlaySinkClass; |
70 #ifdef __SYMBIAN32__ |
62 #ifdef __SYMBIAN32__ |
86 void gst_play_sink_release_pad (GstPlaySink *playsink, GstPad *pad); |
78 void gst_play_sink_release_pad (GstPlaySink *playsink, GstPad *pad); |
87 #ifdef __SYMBIAN32__ |
79 #ifdef __SYMBIAN32__ |
88 IMPORT_C |
80 IMPORT_C |
89 #endif |
81 #endif |
90 |
82 |
91 void gst_play_sink_set_sink (GstPlaySink * playsink, GstPlaySinkType type, GstElement * sink); |
|
92 #ifdef __SYMBIAN32__ |
|
93 IMPORT_C |
|
94 #endif |
|
95 GstElement * gst_play_sink_get_sink (GstPlaySink * playsink, GstPlaySinkType type); |
|
96 |
83 |
|
84 void gst_play_sink_set_video_sink (GstPlaySink * playsink, GstElement * sink); |
97 #ifdef __SYMBIAN32__ |
85 #ifdef __SYMBIAN32__ |
98 IMPORT_C |
86 IMPORT_C |
99 #endif |
87 #endif |
100 |
88 |
101 |
89 void gst_play_sink_set_audio_sink (GstPlaySink * playsink, GstElement * sink); |
102 void gst_play_sink_set_vis_plugin (GstPlaySink * playsink, GstElement * vis); |
|
103 #ifdef __SYMBIAN32__ |
90 #ifdef __SYMBIAN32__ |
104 IMPORT_C |
91 IMPORT_C |
105 #endif |
92 #endif |
106 |
93 |
107 GstElement * gst_play_sink_get_vis_plugin (GstPlaySink * playsink); |
94 void gst_play_sink_set_vis_plugin (GstPlaySink * playsink, GstElement * vis); |
108 #ifdef __SYMBIAN32__ |
95 #ifdef __SYMBIAN32__ |
109 IMPORT_C |
96 IMPORT_C |
110 #endif |
97 #endif |
111 |
98 |
112 |
99 |