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
1d636da2
Commit
1d636da2
authored
Oct 02, 2022
by
Anton Baskanov
Committed by
Alexandre Julliard
Nov 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Reject incompatible output types in MPEG layer-3 decoder.
Signed-off-by:
Anton Baskanov
<
baskanov@gmail.com
>
parent
f114e2d3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
mpeglayer3.c
dlls/quartz/tests/mpeglayer3.c
+3
-3
quartz_transform.c
dlls/winegstreamer/quartz_transform.c
+7
-0
No files found.
dlls/quartz/tests/mpeglayer3.c
View file @
1d636da2
...
...
@@ -767,7 +767,7 @@ static void test_media_types(void)
init_pcm_mt
(
&
mt
,
&
format
,
1
,
32000
,
16
);
hr
=
IPin_QueryAccept
(
pin
,
&
mt
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Got hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
S_FALSE
,
"Got hr %#lx.
\n
"
,
hr
);
IPin_Release
(
pin
);
...
...
@@ -928,12 +928,12 @@ static void test_connect_pin(void)
init_pcm_mt
(
&
req_mt
,
&
req_format
,
1
,
32000
,
16
);
req_mt
.
majortype
=
GUID_NULL
;
hr
=
IPin_QueryAccept
(
source
,
&
req_mt
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Got hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
S_FALSE
,
"Got hr %#lx.
\n
"
,
hr
);
init_pcm_mt
(
&
req_mt
,
&
req_format
,
1
,
32000
,
16
);
req_mt
.
subtype
=
GUID_NULL
;
hr
=
IPin_QueryAccept
(
source
,
&
req_mt
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Got hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
S_FALSE
,
"Got hr %#lx.
\n
"
,
hr
);
hr
=
IMediaControl_Pause
(
control
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
...
...
dlls/winegstreamer/quartz_transform.c
View file @
1d636da2
...
...
@@ -754,6 +754,13 @@ static HRESULT mpeg_layer3_decoder_sink_query_accept(struct transform *filter, c
static
HRESULT
mpeg_layer3_decoder_source_query_accept
(
struct
transform
*
filter
,
const
AM_MEDIA_TYPE
*
mt
)
{
if
(
!
filter
->
sink
.
pin
.
peer
)
return
S_FALSE
;
if
(
!
IsEqualGUID
(
&
mt
->
majortype
,
&
MEDIATYPE_Audio
)
||
!
IsEqualGUID
(
&
mt
->
subtype
,
&
MEDIASUBTYPE_PCM
))
return
S_FALSE
;
return
S_OK
;
}
...
...
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