fix warning in stream restore patch 40/15440/2
authorJaska Uimonen <jaska.uimonen@helsinki.fi>
Thu, 31 Oct 2013 07:24:11 +0000 (09:24 +0200)
committerJaska Uimonen <jaska.uimonen@intel.com>
Mon, 27 Jan 2014 11:16:43 +0000 (13:16 +0200)
Change-Id: I26224f8bfd1a9ce44f953dfcbe390688acf8ec47
Signed-off-by: Jaska Uimonen <jaska.uimonen@intel.com>
src/pulsecore/proplist-util.c

index fa6d806..0a8dbca 100644 (file)
@@ -300,7 +300,7 @@ char *pa_proplist_get_stream_group_extended(pa_proplist *p, const char *prefix,
                 r = NULL;
            }
        }
-       else if (r = pa_proplist_gets(p, preferred_stream_group)) {
+       else if ((r = pa_proplist_gets(p, preferred_stream_group))) {
             if (!strcmp(preferred_stream_group, PA_PROP_MEDIA_ROLE))
                 t = pa_sprintf_malloc("%s-by-media-role:%s", prefix, r);
            else if (!strcmp(preferred_stream_group, PA_PROP_APPLICATION_ID))