Query.hasSchedulingMode
bool hasSchedulingMode(gst.types.PadMode mode)Check if query has scheduling mode set.
When checking if upstream supports pull mode, it is usually notenough to just check for GST_PAD_MODE_PULL with this function, you also want to check whether the scheduling flags returned by [gst.query.Query.parseScheduling] have the seeking flag set (meaning random access is supported, not only sequential pulls).
Parameters
modethe scheduling mode Returns
true when mode is in the list of scheduling modes.