From 5d3fbda90ff2e4ce56da9b7721de41266117ded8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Sun, 23 Dec 2007 19:04:21 +0100 Subject: Break immediately if the video driver is found, rather than continuing for the whole list. --- src/dxr3/dxr3.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dxr3/dxr3.h b/src/dxr3/dxr3.h index 8a55129a0..4ded9cd4c 100644 --- a/src/dxr3/dxr3.h +++ b/src/dxr3/dxr3.h @@ -45,8 +45,10 @@ static inline int dxr3_present(xine_stream_t *stream) if (stream->video_driver && stream->video_driver->node && stream->video_driver->node->plugin_class ) { const video_driver_class_t *const vo_class = (video_driver_class_t *)node->plugin_class; - if (vo_class->identifier) + if (vo_class->identifier) { present = (strcmp(vo_class->identifier, DXR3_VO_ID) == 0); + if ( present ) break; + } } llprintf(LOG_VID, "dxr3 %s\n", present ? "present" : "not present"); return present; -- cgit v1.2.3