WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED LATER
140117
[GStreamer][MSE] wrong duration computing
https://bugs.webkit.org/show_bug.cgi?id=140117
Summary
[GStreamer][MSE] wrong duration computing
Philippe Normand
Reported
2015-01-06 02:13:40 PST
MediaSourceClientGStreamer::durationChanged() should use MediaTime::toFloat()
Attachments
patch
(2.12 KB, patch)
2015-01-06 02:52 PST
,
Philippe Normand
no flags
Details
Formatted Diff
Diff
patch
(2.31 KB, patch)
2015-01-08 09:58 PST
,
Philippe Normand
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Philippe Normand
Comment 1
2015-01-06 02:52:43 PST
Created
attachment 244044
[details]
patch
Sebastian Dröge (slomo)
Comment 2
2015-01-06 03:56:41 PST
Comment on
attachment 244044
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=244044&action=review
> Source/WebCore/platform/graphics/gstreamer/WebKitMediaSourceGStreamer.cpp:357 > + GstClockTime gstDuration = duration.toFloat() * GST_SECOND;
Why? What is the timeValue and timeScale for the durations here? By going through floats you'll lose some precision here
Philippe Normand
Comment 3
2015-01-06 04:03:13 PST
timeValue: 4645885228097732608 scale: 10000000
Philippe Normand
Comment 4
2015-01-06 04:04:14 PST
Duration calculated for the same video with the patch: 0:06:48.999985152
Sebastian Dröge (slomo)
Comment 5
2015-01-07 08:17:26 PST
That seems like a bug elsewhere then, or I misunderstand the API of MediaTime :)
Philippe Normand
Comment 6
2015-01-08 09:58:48 PST
Created
attachment 244269
[details]
patch
Philippe Normand
Comment 7
2015-12-09 00:12:51 PST
This isn't going to apply to the reworked MSE backend.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug