[pulseaudio-commits] r1579 - /branches/lennart/src/pulsecore/protocol-native.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Sun Aug 5 07:06:48 PDT 2007


Author: lennart
Date: Sun Aug  5 16:06:47 2007
New Revision: 1579

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1579&root=3Dpulseaudio&vi=
ew=3Drev
Log:
make sure to handle disconnecting our own connection properly

Modified:
    branches/lennart/src/pulsecore/protocol-native.c

Modified: branches/lennart/src/pulsecore/protocol-native.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/=
protocol-native.c?rev=3D1579&root=3Dpulseaudio&r1=3D1578&r2=3D1579&view=3Dd=
iff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/lennart/src/pulsecore/protocol-native.c (original)
+++ branches/lennart/src/pulsecore/protocol-native.c Sun Aug  5 16:06:47 20=
07
@@ -2298,6 +2298,8 @@
 =

         client =3D pa_idxset_get_by_index(c->protocol->core->clients, idx);
         CHECK_VALIDITY(c->pstream, client, tag, PA_ERR_NOENTITY);
+
+        connection_ref(c);
         pa_client_kill(client);
 =

     } else if (command =3D=3D PA_COMMAND_KILL_SINK_INPUT) {
@@ -2306,6 +2308,7 @@
         s =3D pa_idxset_get_by_index(c->protocol->core->sink_inputs, idx);
         CHECK_VALIDITY(c->pstream, s, tag, PA_ERR_NOENTITY);
 =

+        connection_ref(c);
         pa_sink_input_kill(s);
     } else {
         pa_source_output *s;
@@ -2315,10 +2318,12 @@
         s =3D pa_idxset_get_by_index(c->protocol->core->source_outputs, id=
x);
         CHECK_VALIDITY(c->pstream, s, tag, PA_ERR_NOENTITY);
 =

+        connection_ref(c);
         pa_source_output_kill(s);
     }
 =

     pa_pstream_send_simple_ack(c->pstream, tag);
+    connection_unref(c);
 }
 =

 static void command_load_module(PA_GCC_UNUSED pa_pdispatch *pd, PA_GCC_UNU=
SED uint32_t command, uint32_t tag, pa_tagstruct *t, void *userdata) {




More information about the pulseaudio-commits mailing list