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
3fb8ec59
Commit
3fb8ec59
authored
Feb 19, 2016
by
Andrew Eikum
Committed by
Alexandre Julliard
Feb 20, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Fix usage of gst_audio_format_build_integer.
Signed-off-by:
Andrew Eikum
<
aeikum@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
924c97fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
gsttffilter.c
dlls/winegstreamer/gsttffilter.c
+8
-5
No files found.
dlls/winegstreamer/gsttffilter.c
View file @
3fb8ec59
...
@@ -838,12 +838,15 @@ static HRESULT WINAPI Gstreamer_AudioConvert_SetMediaType(TransformFilter *tf, P
...
@@ -838,12 +838,15 @@ static HRESULT WINAPI Gstreamer_AudioConvert_SetMediaType(TransformFilter *tf, P
inisfloat
=
IsEqualGUID
(
&
inwfx
->
SubFormat
,
&
KSDATAFORMAT_SUBTYPE_IEEE_FLOAT
);
inisfloat
=
IsEqualGUID
(
&
inwfx
->
SubFormat
,
&
KSDATAFORMAT_SUBTYPE_IEEE_FLOAT
);
if
(
inwfx
->
Samples
.
wValidBitsPerSample
)
if
(
inwfx
->
Samples
.
wValidBitsPerSample
)
indepth
=
inwfx
->
Samples
.
wValidBitsPerSample
;
indepth
=
inwfx
->
Samples
.
wValidBitsPerSample
;
}
}
else
if
(
inwfe
->
wFormatTag
==
WAVE_FORMAT_IEEE_FLOAT
)
inisfloat
=
TRUE
;
if
(
inisfloat
)
format
=
inwfe
->
wBitsPerSample
==
64
?
GST_AUDIO_FORMAT_F64LE
:
GST_AUDIO_FORMAT_F32LE
;
else
format
=
gst_audio_format_build_integer
(
inwfe
->
wBitsPerSample
==
8
?
FALSE
:
TRUE
,
G_LITTLE_ENDIAN
,
inwfe
->
wBitsPerSample
,
indepth
);
format
=
inisfloat
?
(
inwfe
->
wBitsPerSample
==
64
?
GST_AUDIO_FORMAT_F64LE
:
GST_AUDIO_FORMAT_F32LE
)
:
gst_audio_format_build_integer
(
inwfe
->
wBitsPerSample
==
8
?
FALSE
:
TRUE
,
inwfe
->
wBitsPerSample
,
indepth
,
G_LITTLE_ENDIAN
);
capsin
=
gst_caps_new_simple
(
"audio/x-raw"
,
capsin
=
gst_caps_new_simple
(
"audio/x-raw"
,
"format"
,
G_TYPE_STRING
,
gst_audio_format_to_string
(
format
),
"format"
,
G_TYPE_STRING
,
gst_audio_format_to_string
(
format
),
"channels"
,
G_TYPE_INT
,
inwfe
->
nChannels
,
"channels"
,
G_TYPE_INT
,
inwfe
->
nChannels
,
...
...
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