Zebediah Figura : winegstreamer: Set lSampleSize in amt_from_gst_caps_audio().

Alexandre Julliard julliard at winehq.org
Tue Sep 17 16:22:48 CDT 2019


Module: wine
Branch: master
Commit: ad791894021282c7fb3cb3e87d89745991ce604f
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=ad791894021282c7fb3cb3e87d89745991ce604f

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Mon Sep 16 19:29:43 2019 -0500

winegstreamer: Set lSampleSize in amt_from_gst_caps_audio().

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winegstreamer/gstdemux.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c
index 397af6ef55..9160d12a5a 100644
--- a/dlls/winegstreamer/gstdemux.c
+++ b/dlls/winegstreamer/gstdemux.c
@@ -140,7 +140,6 @@ static gboolean amt_from_gst_caps_audio(const GstCaps *caps, AM_MEDIA_TYPE *amt)
     amt->cbFormat = sizeof(*wfe);
     amt->bFixedSizeSamples = 0;
     amt->bTemporalCompression = 1;
-    amt->lSampleSize = 0;
     amt->pUnk = NULL;
 
     wfx->wFormatTag = WAVE_FORMAT_EXTENSIBLE;
@@ -177,7 +176,7 @@ static gboolean amt_from_gst_caps_audio(const GstCaps *caps, AM_MEDIA_TYPE *amt)
             wfx->cbSize = 0;
         }
     }
-    wfx->nBlockAlign = wfx->nChannels * wfx->wBitsPerSample/8;
+    amt->lSampleSize = wfx->nBlockAlign = wfx->nChannels * wfx->wBitsPerSample/8;
     wfx->nAvgBytesPerSec = wfx->nSamplesPerSec * wfx->nBlockAlign;
     return TRUE;
 }




More information about the wine-cvs mailing list