Use delta per stream in ovnidump
This commit is contained in:
parent
35de33e0f9
commit
e287087d3b
@ -23,7 +23,7 @@ emit(struct player *player)
|
||||
struct stream *stream = player_stream(player);
|
||||
|
||||
/* Use raw clock in the ovni event */
|
||||
int64_t rel = ev->rclock - c;
|
||||
int64_t rel = stream->deltaclock;
|
||||
c = ev->rclock;
|
||||
|
||||
printf("%s %10ld %+10ld %c%c%c",
|
||||
|
@ -232,6 +232,7 @@ stream_step(struct stream *stream)
|
||||
}
|
||||
}
|
||||
|
||||
stream->deltaclock = clock - stream->lastclock;
|
||||
stream->lastclock = clock;
|
||||
|
||||
return 0;
|
||||
|
@ -15,6 +15,7 @@ struct stream {
|
||||
uint8_t *buf;
|
||||
int64_t size;
|
||||
int64_t lastclock;
|
||||
int64_t deltaclock;
|
||||
int64_t clock_offset;
|
||||
|
||||
heap_node_t hh;
|
||||
|
Loading…
Reference in New Issue
Block a user