[polypaudio-commits] r707 - /trunk/src/modules/module-tunnel.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Thu Apr 13 11:55:56 PDT 2006
Author: lennart
Date: Thu Apr 13 20:55:55 2006
New Revision: 707
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=707&root=polypaudio&view=rev
Log:
unbreak module-tunnel
Modified:
trunk/src/modules/module-tunnel.c
Modified: trunk/src/modules/module-tunnel.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/module-tunnel.c?rev=707&root=polypaudio&r1=706&r2=707&view=diff
==============================================================================
--- trunk/src/modules/module-tunnel.c (original)
+++ trunk/src/modules/module-tunnel.c Thu Apr 13 20:55:55 2006
@@ -240,7 +240,6 @@
while (u->requested_bytes > 0) {
pa_memchunk chunk;
if (pa_sink_render(u->sink, u->requested_bytes, &chunk) < 0) {
-
if (u->requested_bytes >= DEFAULT_TLENGTH-DEFAULT_PREBUF)
send_prebuf_request(u);
@@ -285,9 +284,8 @@
static void stream_get_latency_callback(pa_pdispatch *pd, uint32_t command, PA_GCC_UNUSED uint32_t tag, pa_tagstruct *t, void *userdata) {
struct userdata *u = userdata;
- pa_usec_t buffer_usec, sink_usec, source_usec, transport_usec;
+ pa_usec_t sink_usec, source_usec, transport_usec;
int playing;
- uint32_t queue_length;
int64_t write_index, read_index;
struct timeval local, remote, now;
assert(pd && u);
@@ -301,17 +299,15 @@
return;
}
- if (pa_tagstruct_get_usec(t, &buffer_usec) < 0 ||
- pa_tagstruct_get_usec(t, &sink_usec) < 0 ||
+ if (pa_tagstruct_get_usec(t, &sink_usec) < 0 ||
pa_tagstruct_get_usec(t, &source_usec) < 0 ||
pa_tagstruct_get_boolean(t, &playing) < 0 ||
- pa_tagstruct_getu32(t, &queue_length) < 0 ||
pa_tagstruct_get_timeval(t, &local) < 0 ||
pa_tagstruct_get_timeval(t, &remote) < 0 ||
pa_tagstruct_gets64(t, &write_index) < 0 ||
pa_tagstruct_gets64(t, &read_index) < 0 ||
!pa_tagstruct_eof(t)) {
- pa_log(__FILE__": invalid reply.");
+ pa_log(__FILE__": invalid reply. (latency)");
die(u);
return;
}
@@ -369,6 +365,7 @@
pa_usec_t latency;
const char *name, *description, *monitor_source_name, *driver;
int mute;
+ uint32_t flags;
pa_sample_spec sample_spec;
pa_channel_map channel_map;
pa_cvolume volume;
@@ -395,8 +392,9 @@
pa_tagstruct_gets(t, &monitor_source_name) < 0 ||
pa_tagstruct_get_usec(t, &latency) < 0 ||
pa_tagstruct_gets(t, &driver) < 0 ||
+ pa_tagstruct_getu32(t, &flags) < 0 ||
!pa_tagstruct_eof(t)) {
- pa_log(__FILE__": invalid reply.");
+ pa_log(__FILE__": invalid reply. (get_info)");
die(u);
return;
}
@@ -491,7 +489,7 @@
pa_tagstruct_getu32(t, &u->requested_bytes) < 0 ||
#endif
!pa_tagstruct_eof(t)) {
- pa_log(__FILE__": invalid reply.");
+ pa_log(__FILE__": invalid reply. (create stream)");
die(u);
return;
}
More information about the pulseaudio-commits
mailing list