This is currently used only by video_capture and capture_filter modules and should not be used elsewhere!