# HG changeset patch # User nicodvb # Date 1184412492 0 # Node ID 8615160a0521241df2d5ac14636f18d936562e84 # Parent 0110b591bf9ce62d0dd53df2511aea973a635dcd a beauty mask diff -r 0110b591bf9c -r 8615160a0521 searching.c --- a/searching.c Sat Jul 14 11:25:44 2007 +0000 +++ b/searching.c Sat Jul 14 11:28:12 2007 +0000 @@ -88,16 +88,13 @@ /* fprintf(MSG_OUT, "libdvdnav: Found block %u\n", next_vobu); */ - if(vobu_start <= seekto_block && - next_vobu > seekto_block) { + if(vobu_start <= seekto_block && next_vobu > seekto_block) break; - } else { - vobu_start = next_vobu; - } - address ++; + vobu_start = next_vobu; + address++; } - *vobu = vobu_start; - return DVDNAV_STATUS_OK; + *vobu = vobu_start; + return DVDNAV_STATUS_OK; } fprintf(MSG_OUT, "libdvdnav: admap not located\n"); return DVDNAV_STATUS_ERR;