[polypaudio-commits] r788 - /trunk/src/polyp/scache.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Sun Apr 23 13:59:32 PDT 2006


Author: lennart
Date: Sun Apr 23 22:59:31 2006
New Revision: 788

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=788&root=polypaudio&view=rev
Log:
fix sample uploading

Modified:
    trunk/src/polyp/scache.c

Modified: trunk/src/polyp/scache.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polyp/scache.c?rev=788&root=polypaudio&r1=787&r2=788&view=diff
==============================================================================
--- trunk/src/polyp/scache.c (original)
+++ trunk/src/polyp/scache.c Sun Apr 23 22:59:31 2006
@@ -41,7 +41,7 @@
     assert(s);
 
     PA_CHECK_VALIDITY(s->context, s->state == PA_STREAM_UNCONNECTED, PA_ERR_BADSTATE);
-    PA_CHECK_VALIDITY(s->context, length <= 0, PA_ERR_INVALID);
+    PA_CHECK_VALIDITY(s->context, length > 0, PA_ERR_INVALID);
     
     pa_stream_ref(s);
     
@@ -50,6 +50,7 @@
     t = pa_tagstruct_command(s->context, PA_COMMAND_CREATE_UPLOAD_STREAM, &tag);
     pa_tagstruct_puts(t, s->name);
     pa_tagstruct_put_sample_spec(t, &s->sample_spec);
+    pa_tagstruct_put_channel_map(t, &s->channel_map);
     pa_tagstruct_putu32(t, length);
     pa_pstream_send_tagstruct(s->context->pstream, t);
     pa_pdispatch_register_reply(s->context->pdispatch, tag, DEFAULT_TIMEOUT, pa_create_stream_callback, s);




More information about the pulseaudio-commits mailing list