From 6ea86fae5585e8d0d81d3157c908d752700c58c3 Mon Sep 17 00:00:00 2001 From: Akihiro Sagawa Date: Sun, 12 Jun 2016 21:07:50 +0900 Subject: [PATCH] winegstreamer: Fix a crash in Gstreamer_Mp3_SetMediaType(). Signed-off-by: Akihiro Sagawa Signed-off-by: Andrew Eikum Signed-off-by: Alexandre Julliard --- dlls/winegstreamer/gsttffilter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winegstreamer/gsttffilter.c b/dlls/winegstreamer/gsttffilter.c index cc544d0e758..401a92f7dcf 100644 --- a/dlls/winegstreamer/gsttffilter.c +++ b/dlls/winegstreamer/gsttffilter.c @@ -583,7 +583,7 @@ static HRESULT WINAPI Gstreamer_Mp3_SetMediaType(TransformFilter *tf, PIN_DIRECT "channels", G_TYPE_INT, wfx->nChannels, NULL); capsout = gst_caps_new_simple("audio/x-raw", - "format", G_TYPE_STRING, "S16LE" + "format", G_TYPE_STRING, "S16LE", "rate", G_TYPE_INT, wfx->nSamplesPerSec, "channels", G_TYPE_INT, wfx->nChannels, NULL);