mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
camerabin2: remove unused helper function
This drop_eos_probe function is not used anymore, remove it
This commit is contained in:
parent
5bccb02a90
commit
d9e13c4268
2 changed files with 0 additions and 28 deletions
|
@ -258,29 +258,3 @@ gst_camerabin_remove_elements_from_bin (GstBin * bin)
|
|||
}
|
||||
gst_iterator_free (iter);
|
||||
}
|
||||
|
||||
/**
|
||||
* gst_camerabin_drop_eos_probe:
|
||||
* @pad: pad receiving the event
|
||||
* @event: received event
|
||||
* @u_data: not used
|
||||
*
|
||||
* Event probe that drop all eos events.
|
||||
*
|
||||
* Returns: FALSE to drop the event, TRUE otherwise
|
||||
*/
|
||||
gboolean
|
||||
gst_camerabin_drop_eos_probe (GstPad * pad, GstEvent * event, gpointer u_data)
|
||||
{
|
||||
gboolean ret = TRUE;
|
||||
|
||||
switch (GST_EVENT_TYPE (event)) {
|
||||
case GST_EVENT_EOS:
|
||||
GST_DEBUG ("dropping eos in %s:%s", GST_DEBUG_PAD_NAME (pad));
|
||||
ret = FALSE;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -34,6 +34,4 @@ GstElement * gst_camerabin_setup_default_element (GstBin * bin, GstElement *user
|
|||
|
||||
void gst_camerabin_remove_elements_from_bin (GstBin * bin);
|
||||
|
||||
gboolean gst_camerabin_drop_eos_probe (GstPad * pad, GstEvent * event, gpointer u_data);
|
||||
|
||||
#endif /* #ifndef __CAMERABIN_GENERAL_H_ */
|
||||
|
|
Loading…
Reference in a new issue