MediaSourceClientGStreamer::durationChanged() should use MediaTime::toFloat()
Created attachment 244044 [details] patch
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
timeValue: 4645885228097732608 scale: 10000000
Duration calculated for the same video with the patch: 0:06:48.999985152
That seems like a bug elsewhere then, or I misunderstand the API of MediaTime :)
Created attachment 244269 [details] patch
This isn't going to apply to the reworked MSE backend.