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
9cc742d2
Commit
9cc742d2
authored
Jun 10, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Calculate duration independently per pin.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1e079a0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
gstdemux.c
dlls/winegstreamer/gstdemux.c
+4
-4
No files found.
dlls/winegstreamer/gstdemux.c
View file @
9cc742d2
...
...
@@ -1621,13 +1621,13 @@ static BOOL gstdecoder_init_gst(struct gstdemux *filter)
WaitForSingleObject
(
filter
->
no_more_pads_event
,
INFINITE
);
if
(
!
gst_pad_query_duration
(
filter
->
sources
[
0
]
->
their_src
,
GST_FORMAT_TIME
,
&
duration
))
ERR
(
"Failed to query duration.
\n
"
);
for
(
i
=
0
;
i
<
filter
->
source_count
;
++
i
)
{
struct
gstdemux_source
*
pin
=
filter
->
sources
[
i
];
const
HANDLE
events
[
2
]
=
{
pin
->
caps_event
,
filter
->
error_event
};
if
(
!
gst_pad_query_duration
(
filter
->
sources
[
i
]
->
their_src
,
GST_FORMAT_TIME
,
&
duration
))
ERR
(
"Failed to query duration.
\n
"
);
pin
->
seek
.
llDuration
=
pin
->
seek
.
llStop
=
duration
/
100
;
pin
->
seek
.
llCurrent
=
0
;
if
(
WaitForMultipleObjects
(
2
,
events
,
FALSE
,
INFINITE
))
...
...
@@ -2464,13 +2464,13 @@ static BOOL avi_splitter_init_gst(struct gstdemux *filter)
WaitForSingleObject
(
filter
->
no_more_pads_event
,
INFINITE
);
if
(
!
gst_pad_query_duration
(
filter
->
sources
[
0
]
->
their_src
,
GST_FORMAT_TIME
,
&
duration
))
ERR
(
"Failed to query duration.
\n
"
);
for
(
i
=
0
;
i
<
filter
->
source_count
;
++
i
)
{
struct
gstdemux_source
*
pin
=
filter
->
sources
[
i
];
const
HANDLE
events
[
2
]
=
{
pin
->
caps_event
,
filter
->
error_event
};
if
(
!
gst_pad_query_duration
(
filter
->
sources
[
i
]
->
their_src
,
GST_FORMAT_TIME
,
&
duration
))
ERR
(
"Failed to query duration.
\n
"
);
pin
->
seek
.
llDuration
=
pin
->
seek
.
llStop
=
duration
/
100
;
pin
->
seek
.
llCurrent
=
0
;
if
(
WaitForMultipleObjects
(
2
,
events
,
FALSE
,
INFINITE
))
...
...
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