mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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
This commit is contained in:
parent
162383e6b2
commit
bc1f57a645
1 changed files with 1 additions and 10 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue