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
87e02cb5
Commit
87e02cb5
authored
Jan 24, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Jan 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Implement IPin::QueryAccept() for the MPEG splitter source.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
04012137
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
mpegsplit.c
dlls/quartz/tests/mpegsplit.c
+9
-9
gstdemux.c
dlls/winegstreamer/gstdemux.c
+1
-1
No files found.
dlls/quartz/tests/mpegsplit.c
View file @
87e02cb5
...
...
@@ -695,41 +695,41 @@ static void test_media_types(void)
pmt
->
majortype
=
MEDIATYPE_Video
;
hr
=
IPin_QueryAccept
(
pin
,
pmt
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_FALSE
,
"Got hr %#x.
\n
"
,
hr
);
pmt
->
majortype
=
GUID_NULL
;
hr
=
IPin_QueryAccept
(
pin
,
pmt
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_FALSE
,
"Got hr %#x.
\n
"
,
hr
);
pmt
->
majortype
=
MEDIATYPE_Audio
;
pmt
->
subtype
=
MEDIASUBTYPE_MPEG1Audio
;
hr
=
IPin_QueryAccept
(
pin
,
pmt
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_FALSE
,
"Got hr %#x.
\n
"
,
hr
);
pmt
->
subtype
=
MEDIASUBTYPE_MPEG1Packet
;
hr
=
IPin_QueryAccept
(
pin
,
pmt
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_FALSE
,
"Got hr %#x.
\n
"
,
hr
);
pmt
->
subtype
=
MEDIASUBTYPE_MPEG1Video
;
hr
=
IPin_QueryAccept
(
pin
,
pmt
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_FALSE
,
"Got hr %#x.
\n
"
,
hr
);
pmt
->
subtype
=
MEDIASUBTYPE_MPEG1AudioPayload
;
pmt
->
formattype
=
FORMAT_None
;
hr
=
IPin_QueryAccept
(
pin
,
pmt
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_FALSE
,
"Got hr %#x.
\n
"
,
hr
);
pmt
->
formattype
=
GUID_NULL
;
hr
=
IPin_QueryAccept
(
pin
,
pmt
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_FALSE
,
"Got hr %#x.
\n
"
,
hr
);
pmt
->
formattype
=
FORMAT_WaveFormatEx
;
wfx
=
(
MPEG1WAVEFORMAT
*
)
pmt
->
pbFormat
;
wfx
->
fwHeadLayer
=
ACM_MPEG_LAYER2
;
hr
=
IPin_QueryAccept
(
pin
,
pmt
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_FALSE
,
"Got hr %#x.
\n
"
,
hr
);
wfx
->
fwHeadLayer
=
ACM_MPEG_LAYER3
;
wfx
->
wfx
.
wFormatTag
=
WAVE_FORMAT_MPEGLAYER3
;
hr
=
IPin_QueryAccept
(
pin
,
pmt
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_FALSE
,
"Got hr %#x.
\n
"
,
hr
);
wfx
->
wfx
.
wFormatTag
=
WAVE_FORMAT_MPEG
;
CoTaskMemFree
(
pmt
->
pbFormat
);
...
...
dlls/winegstreamer/gstdemux.c
View file @
87e02cb5
...
...
@@ -2500,7 +2500,7 @@ static BOOL mpeg_splitter_init_gst(struct gstdemux *filter)
static
HRESULT
mpeg_splitter_source_query_accept
(
struct
gstdemux_source
*
pin
,
const
AM_MEDIA_TYPE
*
mt
)
{
return
S_OK
;
return
compare_media_types
(
mt
,
&
pin
->
mt
)
?
S_OK
:
S_FALSE
;
}
static
HRESULT
mpeg_splitter_query_interface
(
struct
strmbase_filter
*
iface
,
REFIID
iid
,
void
**
out
)
...
...
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