[pulseaudio-discuss] [PATCH v5 5/6] native: Send the actual port proplists with card info.

Tanu Kaskinen tanu.kaskinen at digia.com
Fri Apr 13 04:48:29 PDT 2012


---
 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



More information about the pulseaudio-discuss mailing list