git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@257
fefdeb5f-60dc-0310-8127-
8f9354f1896f
}
int pa_context_handle_error(struct pa_context *c, uint32_t command, struct pa_tagstruct *t) {
- assert(c && t);
+ assert(c);
if (command == PA_COMMAND_ERROR) {
+ assert(t);
+
if (pa_tagstruct_getu32(t, &c->error) < 0) {
pa_context_fail(c, PA_ERROR_PROTOCOL);
return -1;
}
if (o->stream->interpolate) {
- o->stream->ipol_timestamp = now;
+ o->stream->ipol_timestamp = i.timestamp;
o->stream->ipol_usec = pa_stream_get_time(o->stream, &i);
}
pa_usec_t usec;
assert(s);
- usec = pa_bytes_to_usec(s->counter, &s->sample_spec);
+ usec = pa_bytes_to_usec(i->counter, &s->sample_spec);
if (i) {
if (s->direction == PA_STREAM_PLAYBACK) {