From 1b63854c1fc093234b7432f03c9f415936e4d21c Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Wed, 7 Jan 2004 13:18:08 +0000 Subject: Fix for instantiate-test (see core). Also remove dead code from jpegenc (which still needs fixing, but that's lower o... Original commit message from CVS: 2004-01-07 Ronald Bultje * ext/audiofile/gstafsink.c: (gst_afsink_init), (gst_afsink_chain), (gst_afsink_handle_event): * ext/jpeg/gstjpegenc.c: (gst_jpegenc_init): * gst/avi/gstavimux.c: (gst_avimux_request_new_pad): * sys/dxr3/dxr3audiosink.c: (dxr3audiosink_init): * sys/dxr3/dxr3spusink.c: (dxr3spusink_init): * sys/dxr3/dxr3videosink.c: (dxr3videosink_init): Fix for instantiate-test (see core). Also remove dead code from jpegenc (which still needs fixing, but that's lower on my TODO list...). * sys/v4l2/gstv4l2src.c: (gst_v4l2src_getcaps): Never return NULL as caps. --- sys/dxr3/dxr3audiosink.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'sys/dxr3/dxr3audiosink.c') diff --git a/sys/dxr3/dxr3audiosink.c b/sys/dxr3/dxr3audiosink.c index bff47594..58709e80 100644 --- a/sys/dxr3/dxr3audiosink.c +++ b/sys/dxr3/dxr3audiosink.c @@ -93,13 +93,6 @@ GST_STATIC_PAD_TEMPLATE ( ); -GST_PAD_EVENT_MASK_FUNCTION(dxr3audiosink_get_event_mask, - { GST_EVENT_FLUSH, 0 }, - { GST_EVENT_DISCONTINUOUS, 0 }, - { GST_EVENT_EOS, 0 } -) - - static void dxr3audiosink_class_init (Dxr3AudioSinkClass *klass); static void dxr3audiosink_base_init (Dxr3AudioSinkClass *klass); static void dxr3audiosink_init (Dxr3AudioSink *sink); @@ -235,12 +228,6 @@ dxr3audiosink_init (Dxr3AudioSink *sink) gst_element_add_pad (GST_ELEMENT (sink), sink->ac3_sinkpad); GST_FLAG_SET (GST_ELEMENT(sink), GST_ELEMENT_EVENT_AWARE); - gst_pad_set_event_function (sink->pcm_sinkpad, dxr3audiosink_handle_event); - gst_pad_set_event_mask_function (sink->pcm_sinkpad, - dxr3audiosink_get_event_mask); - gst_pad_set_event_function (sink->ac3_sinkpad, dxr3audiosink_handle_event); - gst_pad_set_event_mask_function (sink->ac3_sinkpad, - dxr3audiosink_get_event_mask); sink->card_number = 0; -- cgit v1.2.1