Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
6df92c11
Commit
6df92c11
authored
Sep 13, 2011
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Sep 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Use WAVE_FORMAT_PCM when possible for demux.
parent
565ece5e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
gstdemux.c
dlls/winegstreamer/gstdemux.c
+6
-1
No files found.
dlls/winegstreamer/gstdemux.c
View file @
6df92c11
...
@@ -147,8 +147,13 @@ static int amt_from_gst_caps_audio(GstCaps *caps, AM_MEDIA_TYPE *amt) {
...
@@ -147,8 +147,13 @@ static int amt_from_gst_caps_audio(GstCaps *caps, AM_MEDIA_TYPE *amt) {
if
(
!
strcmp
(
typename
,
"audio/x-raw-float"
))
{
if
(
!
strcmp
(
typename
,
"audio/x-raw-float"
))
{
wfe
->
SubFormat
=
KSDATAFORMAT_SUBTYPE_IEEE_FLOAT
;
wfe
->
SubFormat
=
KSDATAFORMAT_SUBTYPE_IEEE_FLOAT
;
wfx
->
wBitsPerSample
=
wfe
->
Samples
.
wValidBitsPerSample
=
32
;
wfx
->
wBitsPerSample
=
wfe
->
Samples
.
wValidBitsPerSample
=
32
;
}
else
}
else
{
wfe
->
SubFormat
=
KSDATAFORMAT_SUBTYPE_PCM
;
wfe
->
SubFormat
=
KSDATAFORMAT_SUBTYPE_PCM
;
if
(
wfx
->
nChannels
<=
2
&&
bpp
<=
16
&&
depth
==
bpp
)
{
wfx
->
wFormatTag
=
WAVE_FORMAT_PCM
;
wfx
->
cbSize
=
0
;
}
}
wfx
->
nBlockAlign
=
wfx
->
nChannels
*
wfx
->
wBitsPerSample
/
8
;
wfx
->
nBlockAlign
=
wfx
->
nChannels
*
wfx
->
wBitsPerSample
/
8
;
wfx
->
nAvgBytesPerSec
=
wfx
->
nSamplesPerSec
*
wfx
->
nBlockAlign
;
wfx
->
nAvgBytesPerSec
=
wfx
->
nSamplesPerSec
*
wfx
->
nBlockAlign
;
return
1
;
return
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment