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
e8e5e8b5
Commit
e8e5e8b5
authored
Oct 20, 2023
by
Alfred Agrell
Committed by
Alexandre Julliard
Nov 01, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Add program stream and video output support to CLSID_MPEG1Splitter.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=9127
parent
7b261182
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
4 deletions
+24
-4
quartz_parser.c
dlls/winegstreamer/quartz_parser.c
+24
-4
No files found.
dlls/winegstreamer/quartz_parser.c
View file @
e8e5e8b5
...
...
@@ -2205,10 +2205,10 @@ static HRESULT mpeg_splitter_sink_query_accept(struct strmbase_pin *iface, const
{
if
(
!
IsEqualGUID
(
&
mt
->
majortype
,
&
MEDIATYPE_Stream
))
return
S_FALSE
;
if
(
IsEqualGUID
(
&
mt
->
subtype
,
&
MEDIASUBTYPE_MPEG1Audio
))
if
(
IsEqualGUID
(
&
mt
->
subtype
,
&
MEDIASUBTYPE_MPEG1Audio
)
||
IsEqualGUID
(
&
mt
->
subtype
,
&
MEDIASUBTYPE_MPEG1System
))
return
S_OK
;
if
(
IsEqualGUID
(
&
mt
->
subtype
,
&
MEDIASUBTYPE_MPEG1Video
)
||
IsEqualGUID
(
&
mt
->
subtype
,
&
MEDIASUBTYPE_MPEG1System
)
||
IsEqualGUID
(
&
mt
->
subtype
,
&
MEDIASUBTYPE_MPEG1VideoCD
))
FIXME
(
"Unsupported subtype %s.
\n
"
,
wine_dbgstr_guid
(
&
mt
->
subtype
));
return
S_FALSE
;
...
...
@@ -2223,8 +2223,28 @@ static const struct strmbase_sink_ops mpeg_splitter_sink_ops =
static
BOOL
mpeg_splitter_filter_init_gst
(
struct
parser
*
filter
)
{
if
(
!
create_pin
(
filter
,
wg_parser_get_stream
(
filter
->
wg_parser
,
0
),
L"Audio"
))
return
FALSE
;
wg_parser_t
parser
=
filter
->
wg_parser
;
unsigned
int
i
,
stream_count
;
wg_parser_stream_t
stream
;
struct
wg_format
fmt
;
stream_count
=
wg_parser_get_stream_count
(
parser
);
for
(
i
=
0
;
i
<
stream_count
;
++
i
)
{
stream
=
wg_parser_get_stream
(
parser
,
i
);
wg_parser_stream_get_preferred_format
(
stream
,
&
fmt
);
if
(
fmt
.
major_type
==
WG_MAJOR_TYPE_VIDEO_MPEG1
)
{
if
(
!
create_pin
(
filter
,
wg_parser_get_stream
(
parser
,
i
),
L"Video"
))
return
FALSE
;
}
else
if
(
fmt
.
major_type
==
WG_MAJOR_TYPE_AUDIO_MPEG1
)
{
if
(
!
create_pin
(
filter
,
wg_parser_get_stream
(
parser
,
i
),
L"Audio"
))
return
FALSE
;
}
else
FIXME
(
"unexpected format %u
\n
"
,
fmt
.
major_type
);
}
return
TRUE
;
}
...
...
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