Changeset 236264 in webkit
- Timestamp:
- Sep 20, 2018, 9:46:58 AM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
platform/graphics/gstreamer/MediaSampleGStreamer.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r236258 r236264 1 2018-09-20 Alicia Boya García <aboya@igalia.com> 2 3 [GStreamer][MSE] Add a default sample duration 4 https://bugs.webkit.org/show_bug.cgi?id=189788 5 6 Some WebM files don't provide sample durations, so we need to provide 7 a safe default in order for them to be playable. 8 9 Reviewed by Michael Catanzaro. 10 11 * platform/graphics/gstreamer/MediaSampleGStreamer.cpp: 12 (WebCore::MediaSampleGStreamer::MediaSampleGStreamer): 13 1 14 2018-09-20 Alicia Boya García <aboya@igalia.com> 2 15 -
trunk/Source/WebCore/platform/graphics/gstreamer/MediaSampleGStreamer.cpp
r230625 r236264 51 51 if (GST_BUFFER_DURATION_IS_VALID(buffer)) 52 52 m_duration = createMediaTime(GST_BUFFER_DURATION(buffer)); 53 else { 54 // Unfortunately, sometimes samples don't provide a duration. This can never happen in MP4 because of the way 55 // the format is laid out, but it's pretty common in WebM. 56 // The good part is that durations don't matter for playback, just for buffered ranges and coded frame deletion. 57 // We want to pick something small enough to not cause unwanted frame deletion, but big enough to never be 58 // mistaken for a rounding artifact. 59 m_duration = createMediaTime(16666667); // 1/60 seconds 60 } 53 61 54 62 m_size = gst_buffer_get_size(buffer);
Note:
See TracChangeset
for help on using the changeset viewer.