From 22cfbdfe29b88582efdc772ad0d2f66ebaa48845 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 24 Jul 2002 21:41:38 +0000 Subject: - added eventmask/query/format functions Original commit message from CVS: - added eventmask/query/format functions - some cleanups --- gst/avi/gstavimux.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'gst/avi/gstavimux.c') 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;iaudiosinkpad[i] = NULL; -- cgit