Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1e079a0c
Commit
1e079a0c
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: Don't query our own source pad to convert duration.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e92c851d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
gstdemux.c
dlls/winegstreamer/gstdemux.c
+10
-8
No files found.
dlls/winegstreamer/gstdemux.c
View file @
1e079a0c
...
...
@@ -1139,21 +1139,23 @@ static gboolean query_function(GstPad *pad, GstObject *parent, GstQuery *query)
{
struct
gstdemux
*
This
=
gst_pad_get_element_private
(
pad
);
GstFormat
format
;
int
ret
;
LONGLONG
duration
;
TRACE
(
"filter %p, type %s.
\n
"
,
This
,
GST_QUERY_TYPE_NAME
(
query
));
switch
(
GST_QUERY_TYPE
(
query
))
{
case
GST_QUERY_DURATION
:
gst_query_parse_duration
(
query
,
&
format
,
NULL
);
if
(
format
==
GST_FORMAT_PERCENT
)
{
gst_query_set_duration
(
query
,
GST_FORMAT_PERCENT
,
GST_FORMAT_PERCENT_MAX
);
gst_query_parse_duration
(
query
,
&
format
,
NULL
);
if
(
format
==
GST_FORMAT_PERCENT
)
{
gst_query_set_duration
(
query
,
GST_FORMAT_PERCENT
,
GST_FORMAT_PERCENT_MAX
);
return
TRUE
;
}
ret
=
gst_pad_query_convert
(
pad
,
GST_FORMAT_BYTES
,
This
->
filesize
,
format
,
&
duration
);
gst_query_set_duration
(
query
,
format
,
duration
);
return
ret
;
else
if
(
format
==
GST_FORMAT_BYTES
)
{
gst_query_set_duration
(
query
,
GST_FORMAT_BYTES
,
This
->
filesize
);
return
TRUE
;
}
return
FALSE
;
case
GST_QUERY_SEEKING
:
gst_query_parse_seeking
(
query
,
&
format
,
NULL
,
NULL
,
NULL
);
if
(
format
!=
GST_FORMAT_BYTES
)
...
...
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