search for: getpacket

Displaying 2 results from an estimated 2 matches for "getpacket".

Did you mean: netpacket
2004 May 18
1
Calculating vorbis packet durations...
After a few other attempts at hacks to determine start times of pages, the only other option left is to partially decode the packets in the demuxer in order to give correct start time stamps after a seek. Someone mentioned it was relatively easy to do without a full decode. I've had a bit of a search in the mailing lists and on the web and can't find any details about it. What i need is
2011 Oct 03
2
patch: Replace many usleep and some sleep calls with nanosleep
...amp;delay, NULL); #endif blazer_initups(); } Index: b/drivers/isbmex.c =================================================================== --- a/drivers/isbmex.c 2011-08-17 00:40:17.000000000 +0300 +++ b/drivers/isbmex.c 2011-08-17 00:40:17.000000000 +0300 @@ -180,7 +180,7 @@ static const char *getpacket(int *we_kno if (bytes_per_packet && r < bytes_per_packet){ ssize_t rr; D(printf("short read...\n");) - usleep(500000); + struct timespec delay = {0, 500e6}; nanosleep(&delay, NULL); tv.tv_sec = 2; tv.tv_usec = 0;...