gstreamer: Get function name for logging outside the internal closure
Otherwise the function name will include the name of the closure.
Part-of: !1260 (merged)
Otherwise the function name will include the name of the closure.
Part-of: !1260 (merged)