[pulseaudio-commits] [Git][pulseaudio/pulseaudio][master] raop: Fix non working tcp mode

Arun Raghavan gitlab at gitlab.freedesktop.org
Tue Sep 24 02:35:46 UTC 2019



Arun Raghavan pushed to branch master at PulseAudio / pulseaudio


Commits:
0d22558b by ckdo at 2019-09-24T02:29:59Z
raop: Fix non working tcp mode

- - - - -


1 changed file:

- src/modules/raop/raop-client.c


Changes:

=====================================
src/modules/raop/raop-client.c
=====================================
@@ -362,13 +362,12 @@ static ssize_t send_tcp_audio_packet(pa_raop_client *c, pa_memchunk *block, size
     ssize_t written = -1;
     size_t done = 0;
 
-    if (!(packet = pa_raop_packet_buffer_retrieve(c->pbuf, c->seq)))
-        return -1;
+    packet = pa_raop_packet_buffer_retrieve(c->pbuf, c->seq);
 
-    if (packet->length <= 0) {
+    if (!packet || (packet && packet->length <= 0)) {
         pa_assert(block->index == offset);
 
-        if (!(packet = pa_raop_packet_buffer_prepare(c->pbuf, c->seq + 1, max)))
+        if (!(packet = pa_raop_packet_buffer_prepare(c->pbuf, c->seq, max)))
             return -1;
 
         packet->index = 0;



View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/commit/0d22558b4778c749a39e9e7efe96e73e9bc55f35

-- 
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/commit/0d22558b4778c749a39e9e7efe96e73e9bc55f35
You're receiving this email because of your account on gitlab.freedesktop.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-commits/attachments/20190924/aa166fba/attachment-0001.html>


More information about the pulseaudio-commits mailing list