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
9d8de06f
Commit
9d8de06f
authored
Oct 02, 2022
by
Anton Baskanov
Committed by
Alexandre Julliard
Nov 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Check whether transform is supported when creating MPEG layer-3 decoder.
Signed-off-by:
Anton Baskanov
<
baskanov@gmail.com
>
parent
a9cda37f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
quartz_transform.c
dlls/winegstreamer/quartz_transform.c
+30
-0
No files found.
dlls/winegstreamer/quartz_transform.c
View file @
9d8de06f
...
...
@@ -816,9 +816,39 @@ static const struct transform_ops mpeg_layer3_decoder_transform_ops =
HRESULT
mpeg_layer3_decoder_create
(
IUnknown
*
outer
,
IUnknown
**
out
)
{
static
const
struct
wg_format
output_format
=
{
.
major_type
=
WG_MAJOR_TYPE_AUDIO
,
.
u
.
audio
=
{
.
format
=
WG_AUDIO_FORMAT_S16LE
,
.
channel_mask
=
1
,
.
channels
=
1
,
.
rate
=
44100
,
},
};
static
const
struct
wg_format
input_format
=
{
.
major_type
=
WG_MAJOR_TYPE_AUDIO_MPEG1
,
.
u
.
audio_mpeg1
=
{
.
layer
=
3
,
.
channels
=
1
,
.
rate
=
44100
,
},
};
struct
wg_transform
*
transform
;
struct
transform
*
object
;
HRESULT
hr
;
transform
=
wg_transform_create
(
&
input_format
,
&
output_format
);
if
(
!
transform
)
{
ERR_
(
winediag
)(
"GStreamer doesn't support MPEG-1 audio decoding, please install appropriate plugins.
\n
"
);
return
E_FAIL
;
}
wg_transform_destroy
(
transform
);
hr
=
transform_create
(
outer
,
&
CLSID_mpeg_layer3_decoder
,
&
mpeg_layer3_decoder_transform_ops
,
&
object
);
if
(
FAILED
(
hr
))
return
hr
;
...
...
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