[PATCH v4 5/9] native: Send the actual port proplists with card info.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 src/pulsecore/protocol-native.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/pulsecore/protocol-native.c b/src/pulsecore/protocol-native.c
index 41fc0a0..487eb7a 100644
--- a/src/pulsecore/protocol-native.c
+++ b/src/pulsecore/protocol-native.c
@@ -3264,7 +3264,6 @@ static void card_fill_tagstruct(pa_native_connection *c, pa_tagstruct *t, pa_car
 
     if (card->ports) {
         pa_device_port* port;
-        pa_proplist* proplist = pa_proplist_new(); /* For now - push an empty proplist */
 
         pa_tagstruct_putu32(t, pa_hashmap_size(card->ports));
 
@@ -3274,7 +3273,7 @@ static void card_fill_tagstruct(pa_native_connection *c, pa_tagstruct *t, pa_car
             pa_tagstruct_putu32(t, port->priority);
             pa_tagstruct_putu32(t, port->available);
             pa_tagstruct_putu8(t, /* FIXME: port->direction */ (port->is_input ? PA_DIRECTION_INPUT : 0) | (port->is_output ? PA_DIRECTION_OUTPUT : 0));
-            pa_tagstruct_put_proplist(t, proplist);
+            pa_tagstruct_put_proplist(t, port->proplist);
 
             if (port->profiles) {
                 void* state2;
@@ -3285,7 +3284,6 @@ static void card_fill_tagstruct(pa_native_connection *c, pa_tagstruct *t, pa_car
                 pa_tagstruct_putu32(t, 0);
         }
 
-        pa_proplist_free(proplist);
     } else
         pa_tagstruct_putu32(t, 0);
 }
-- 
1.7.10



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux