pulse: Fix format info to caps conversion for PCM
authorArun Raghavan <arunsr@codeaurora.org>
Mon, 28 May 2018 09:09:53 +0000 (14:39 +0530)
committerArun Raghavan <arun@arunraghavan.net>
Fri, 18 Jan 2019 11:06:38 +0000 (11:06 +0000)
ext/pulse/pulseutil.c

index ea08d15..aa90ce9 100644 (file)
@@ -467,7 +467,7 @@ gst_pulse_format_info_to_caps (pa_format_info * format)
         ret = gst_caps_from_string (_PULSE_CAPS_LINEAR);
 
         if (sformat)
-          gst_caps_set_simple (ret, "format", G_TYPE_STRING, NULL);
+          gst_caps_set_simple (ret, "format", G_TYPE_STRING, sformat, NULL);
       }
 
       pa_xfree (tmp);