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
7c03bca5
Commit
7c03bca5
authored
Mar 31, 2024
by
Akihiro Sagawa
Committed by
Alexandre Julliard
May 07, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Seek to the end after MPEG splitter connection.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=56485
parent
3547dfc5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
mpegsplit.c
dlls/quartz/tests/mpegsplit.c
+1
-1
quartz_parser.c
dlls/winegstreamer/quartz_parser.c
+19
-1
No files found.
dlls/quartz/tests/mpegsplit.c
View file @
7c03bca5
...
@@ -2183,7 +2183,7 @@ static void test_video_read_position(void)
...
@@ -2183,7 +2183,7 @@ static void test_video_read_position(void)
hr
=
IFilterGraph2_ConnectDirect
(
graph
,
&
testsource
.
source
.
pin
.
IPin_iface
,
sink
,
NULL
);
hr
=
IFilterGraph2_ConnectDirect
(
graph
,
&
testsource
.
source
.
pin
.
IPin_iface
,
sink
,
NULL
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
todo_wine
ok
(
testsource
.
read_position
==
total
,
"Got 0x%s, expected 0x%s.
\n
"
,
wine_dbgstr_longlong
(
testsource
.
read_position
),
wine_dbgstr_longlong
(
total
));
ok
(
testsource
.
read_position
==
total
,
"Got 0x%s, expected 0x%s.
\n
"
,
wine_dbgstr_longlong
(
testsource
.
read_position
),
wine_dbgstr_longlong
(
total
));
IAsyncReader_Release
(
testsource
.
reader
);
IAsyncReader_Release
(
testsource
.
reader
);
IPin_Release
(
sink
);
IPin_Release
(
sink
);
...
...
dlls/winegstreamer/quartz_parser.c
View file @
7c03bca5
...
@@ -2380,11 +2380,29 @@ static HRESULT mpeg_splitter_sink_get_media_type(struct strmbase_pin *pin,
...
@@ -2380,11 +2380,29 @@ static HRESULT mpeg_splitter_sink_get_media_type(struct strmbase_pin *pin,
return
S_OK
;
return
S_OK
;
}
}
static
HRESULT
mpeg_splitter_sink_connect
(
struct
strmbase_sink
*
iface
,
IPin
*
peer
,
const
AM_MEDIA_TYPE
*
pmt
)
{
struct
parser
*
filter
=
impl_from_strmbase_sink
(
iface
);
HRESULT
hr
=
parser_sink_connect
(
iface
,
peer
,
pmt
);
/* Seek the reader to the end. RE:D Cherish! depends on this. */
if
(
SUCCEEDED
(
hr
)
&&
IsEqualGUID
(
&
pmt
->
subtype
,
&
MEDIASUBTYPE_MPEG1System
)
&&
IsEqualGUID
(
&
pmt
->
majortype
,
&
MEDIATYPE_Stream
))
{
LONGLONG
file_size
,
unused
;
IAsyncReader_Length
(
filter
->
reader
,
&
file_size
,
&
unused
);
IAsyncReader_SyncRead
(
filter
->
reader
,
file_size
,
0
,
NULL
);
}
return
hr
;
}
static
const
struct
strmbase_sink_ops
mpeg_splitter_sink_ops
=
static
const
struct
strmbase_sink_ops
mpeg_splitter_sink_ops
=
{
{
.
base
.
pin_query_accept
=
mpeg_splitter_sink_query_accept
,
.
base
.
pin_query_accept
=
mpeg_splitter_sink_query_accept
,
.
base
.
pin_get_media_type
=
mpeg_splitter_sink_get_media_type
,
.
base
.
pin_get_media_type
=
mpeg_splitter_sink_get_media_type
,
.
sink_connect
=
pars
er_sink_connect
,
.
sink_connect
=
mpeg_splitt
er_sink_connect
,
.
sink_disconnect
=
parser_sink_disconnect
,
.
sink_disconnect
=
parser_sink_disconnect
,
};
};
...
...
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