diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-23 19:04:21 +0100 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-23 19:04:21 +0100 |
commit | 5d3fbda90ff2e4ce56da9b7721de41266117ded8 (patch) | |
tree | 322d1bcdbf40c59fc8a028d227b89e41a45b82ee | |
parent | f2524801047b6cc4d9178e45cd4799e452854ab7 (diff) | |
download | xine-lib-5d3fbda90ff2e4ce56da9b7721de41266117ded8.tar.gz xine-lib-5d3fbda90ff2e4ce56da9b7721de41266117ded8.tar.bz2 |
Break immediately if the video driver is found, rather than continuing for the whole list.
-rw-r--r-- | src/dxr3/dxr3.h | 4 |
1 files changed, 3 insertions, 1 deletions
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; |