search for: current_unit

Displaying 3 results from an estimated 3 matches for "current_unit".

Did you mean: current_uid
2002 Jun 08
2
New qdisc path, try it (what is the problem)
hello, this is my new qdisc patch, when i recompile the kernel with this patch i dn''nt succeed please look at it and if there are any mistakes plesease send me a mail thanks in advance ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com
2009 May 15
0
[PATCH] oggz: limit seeking to specified range
...offset_end (oggz)) == -1) { #ifdef DEBUG - printf ("oggz_seek_set: oggz_offset_end == -1, FAIL\n"); + printf ("oggz_bounded_seek_set: oggz_offset_end == -1, FAIL\n"); #endif return -1; } reader = &oggz->x.reader; if (unit_target == reader->current_unit) { #ifdef DEBUG - printf ("oggz_seek_set: unit_target == reader->current_unit, SKIP\n"); + printf ("oggz_bounded_seek_set: unit_target == reader->current_unit, SKIP\n"); #endif return (long)reader->current_unit; } if (unit_target == 0) { o...
2009 May 04
1
[PATCH] oggz: inefficient seeking
...+ GUESS_MULTIPLIER * (unit_target - unit_begin) / + (unit_at - unit_begin); + } #ifdef DEBUG printf ("oggz_seek::guess: guess_ratio %lld = (%lld - %lld) / (%lld - %lld)\n", @@ -657,7 +663,16 @@ oggz_seek_set (OGGZ * oggz, ogg_int64_t unit_target) unit_at = reader->current_unit; unit_begin = 0; - unit_end = -1; + + og = &oggz->current_page; + + if (oggz_seek_raw (oggz, 0, SEEK_END) >= 0) { + ogg_int64_t granulepos; + + if (oggz_get_prev_start_page (oggz, og, &granulepos, &serialno) >= 0) { + unit_end = oggz_get_unit (oggz, serialno, g...