winegstreamer: Set lSampleSize in amt_from_gst_caps_audio().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6a4347be37
commit
ad79189402
|
@ -140,7 +140,6 @@ static gboolean amt_from_gst_caps_audio(const GstCaps *caps, AM_MEDIA_TYPE *amt)
|
||||||
amt->cbFormat = sizeof(*wfe);
|
amt->cbFormat = sizeof(*wfe);
|
||||||
amt->bFixedSizeSamples = 0;
|
amt->bFixedSizeSamples = 0;
|
||||||
amt->bTemporalCompression = 1;
|
amt->bTemporalCompression = 1;
|
||||||
amt->lSampleSize = 0;
|
|
||||||
amt->pUnk = NULL;
|
amt->pUnk = NULL;
|
||||||
|
|
||||||
wfx->wFormatTag = WAVE_FORMAT_EXTENSIBLE;
|
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->cbSize = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
wfx->nBlockAlign = wfx->nChannels * wfx->wBitsPerSample/8;
|
amt->lSampleSize = wfx->nBlockAlign = wfx->nChannels * wfx->wBitsPerSample/8;
|
||||||
wfx->nAvgBytesPerSec = wfx->nSamplesPerSec * wfx->nBlockAlign;
|
wfx->nAvgBytesPerSec = wfx->nSamplesPerSec * wfx->nBlockAlign;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue