From bc1f57a6457329a0217e7428f1846c6f185eecd4 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Wed, 29 Dec 2010 14:12:06 -0300 Subject: [PATCH] wrappercamerabinsrc: Use drop_eos function from camerabingeneral There was already a event probe function for dropping EOS on camerabingenereal, so use that instead of replicating the code --- gst/camerabin2/gstwrappercamerabinsrc.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/gst/camerabin2/gstwrappercamerabinsrc.c b/gst/camerabin2/gstwrappercamerabinsrc.c index ebf2d8e87b..707f70ab57 100644 --- a/gst/camerabin2/gstwrappercamerabinsrc.c +++ b/gst/camerabin2/gstwrappercamerabinsrc.c @@ -226,15 +226,6 @@ gst_wrapper_camera_bin_src_event (GstPad * pad, GstEvent * event) return src->srcpad_event_func (pad, event); } -static gboolean -src_event_probe (GstPad * pad, GstEvent * event, gpointer user_data) -{ - if (GST_EVENT_TYPE (event) == GST_EVENT_EOS) { - return FALSE; - } - return TRUE; -} - /** * gst_wrapper_camera_bin_src_construct_pipeline: * @bcamsrc: camerasrc object @@ -283,7 +274,7 @@ gst_wrapper_camera_bin_src_construct_pipeline (GstBaseCameraSrc * bcamsrc) pad = gst_element_get_static_pad (self->src_vid_src, "src"); self->src_event_probe_id = gst_pad_add_event_probe (pad, - (GCallback) src_event_probe, self); + (GCallback) gst_camerabin_drop_eos_probe, NULL); gst_object_unref (pad); }