Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
George Kiagiadakis
gst-plugins-good
Commits
bd51aa7a
Commit
bd51aa7a
authored
May 09, 2014
by
Eric Trousset
Committed by
Tim-Philipp Müller
May 09, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qtdemux: don't respond to a position query in BYTE format with a TIME position
https://bugzilla.gnome.org/show_bug.cgi?id=729553
parent
9872c194
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
gst/isomp4/qtdemux.c
gst/isomp4/qtdemux.c
+7
-2
No files found.
gst/isomp4/qtdemux.c
View file @
bd51aa7a
...
...
@@ -737,12 +737,17 @@ gst_qtdemux_handle_src_query (GstPad * pad, GstObject * parent,
GST_LOG_OBJECT
(
pad
,
"%s query"
,
GST_QUERY_TYPE_NAME
(
query
));
switch
(
GST_QUERY_TYPE
(
query
))
{
case
GST_QUERY_POSITION
:
if
(
GST_CLOCK_TIME_IS_VALID
(
qtdemux
->
segment
.
position
))
{
case
GST_QUERY_POSITION
:{
GstFormat
fmt
;
gst_query_parse_position
(
query
,
&
fmt
,
NULL
);
if
(
fmt
==
GST_FORMAT_TIME
&&
GST_CLOCK_TIME_IS_VALID
(
qtdemux
->
segment
.
position
))
{
gst_query_set_position
(
query
,
GST_FORMAT_TIME
,
qtdemux
->
segment
.
position
);
res
=
TRUE
;
}
}
break
;
case
GST_QUERY_DURATION
:{
GstFormat
fmt
;
...
...
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