summaryrefslogtreecommitdiffstats
path: root/gst/avi/gstavimux.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2002-07-24 21:41:38 +0000
committerWim Taymans <wim.taymans@gmail.com>2002-07-24 21:41:38 +0000
commit22cfbdfe29b88582efdc772ad0d2f66ebaa48845 (patch)
treea1f88e0c42e65d510bca902939355c59189f7891 /gst/avi/gstavimux.c
parent2e8109ca45a69e6ab554648816698f2d0eb8c52a (diff)
- added eventmask/query/format functions
Original commit message from CVS: - added eventmask/query/format functions - some cleanups
Diffstat (limited to 'gst/avi/gstavimux.c')
-rw-r--r--gst/avi/gstavimux.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gst/avi/gstavimux.c b/gst/avi/gstavimux.c
index 9b392731..83b0a9a0 100644
--- a/gst/avi/gstavimux.c
+++ b/gst/avi/gstavimux.c
@@ -233,6 +233,17 @@ gst_avimux_class_init (GstAviMuxClass *klass)
gstelement_class->set_property = gst_avimux_set_property;
}
+static const GstEventMask*
+gst_avimux_get_event_masks (GstPad *pad)
+{
+ static const GstEventMask gst_avimux_event_masks[] = {
+ { GST_EVENT_NEW_MEDIA, 0 },
+ { 0, }
+ };
+
+ return gst_avimux_event_masks;
+}
+
static void
gst_avimux_init (GstAviMux *avimux)
{
@@ -243,6 +254,7 @@ gst_avimux_init (GstAviMux *avimux)
GST_FLAG_SET (GST_ELEMENT(avimux), GST_ELEMENT_EVENT_AWARE);
gst_pad_set_event_function(avimux->srcpad, gst_avimux_handle_event);
+ gst_pad_set_event_mask_function(avimux->srcpad, gst_avimux_get_event_masks);
for (i=0;i<MAX_NUM_AUDIO_PADS;i++)
avimux->audiosinkpad[i] = NULL;