don't make m-e-s hit an assert when the latency is queried

This commit is contained in:
Lennart Poettering 2009-01-27 23:58:34 +01:00
parent 0f664b7365
commit 514661e36c

View file

@ -169,7 +169,7 @@ static int sink_process_msg(pa_msgobject *o, int code, void *data, int64_t offse
w = pa_bytes_to_usec((uint64_t) u->offset + u->memchunk.length, &u->sink->sample_spec); w = pa_bytes_to_usec((uint64_t) u->offset + u->memchunk.length, &u->sink->sample_spec);
*((pa_usec_t*) data) = w > r ? w - r : 0; *((pa_usec_t*) data) = w > r ? w - r : 0;
break; return 0;
} }
case SINK_MESSAGE_PASS_SOCKET: { case SINK_MESSAGE_PASS_SOCKET: {