diff --git a/gst/selector/gstinputselector.c b/gst/selector/gstinputselector.c index e5918bb435..b829f4fb21 100644 --- a/gst/selector/gstinputselector.c +++ b/gst/selector/gstinputselector.c @@ -1202,14 +1202,11 @@ gst_input_selector_getcaps (GstPad * pad) } /* check if the pad is the active sinkpad */ -static gboolean +static inline gboolean gst_input_selector_is_active_sinkpad (GstInputSelector * sel, GstPad * pad) { - GstSelectorPad *selpad; gboolean res; - selpad = GST_SELECTOR_PAD_CAST (pad); - GST_INPUT_SELECTOR_LOCK (sel); res = (pad == sel->active_sinkpad); GST_INPUT_SELECTOR_UNLOCK (sel);