Changeset 264166 in webkit
- Timestamp:
- Jul 9, 2020, 5:30:22 AM (6 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
platform/graphics/gstreamer/mse/MediaSourceClientGStreamerMSE.cpp (modified) (3 diffs)
-
platform/graphics/gstreamer/mse/MediaSourceClientGStreamerMSE.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r264164 r264166 1 2020-07-09 Alicia Boya García <aboya@igalia.com> 2 3 [MSE][GStreamer] Don't cache duration in MediaSourceClientGStreamerMSE 4 https://bugs.webkit.org/show_bug.cgi?id=214128 5 6 Reviewed by Xabier Rodriguez-Calvar. 7 8 MediaSource should be the single source of truth for the duration of 9 the MediaSource, and querying it to MediaSource is efficient enough 10 (trivial getter). There is no reason for MediaSourceClientGStreamerMSE 11 to store a separate m_duration field. 12 13 This patch introduces no behavior changes. 14 15 * platform/graphics/gstreamer/mse/MediaSourceClientGStreamerMSE.cpp: 16 (WebCore::MediaSourceClientGStreamerMSE::MediaSourceClientGStreamerMSE): 17 (WebCore::MediaSourceClientGStreamerMSE::duration): 18 (WebCore::MediaSourceClientGStreamerMSE::durationChanged): 19 * platform/graphics/gstreamer/mse/MediaSourceClientGStreamerMSE.h: 20 1 21 2020-07-09 Alicia Boya García <aboya@igalia.com> 2 22 -
trunk/Source/WebCore/platform/graphics/gstreamer/mse/MediaSourceClientGStreamerMSE.cpp
r252950 r264166 47 47 MediaSourceClientGStreamerMSE::MediaSourceClientGStreamerMSE(MediaPlayerPrivateGStreamerMSE& playerPrivate) 48 48 : m_playerPrivate(playerPrivate) 49 , m_duration(MediaTime::invalidTime())50 49 { 51 50 ASSERT(WTF::isMainThread()); … … 71 70 } 72 71 73 const MediaTime&MediaSourceClientGStreamerMSE::duration()72 MediaTime MediaSourceClientGStreamerMSE::duration() 74 73 { 75 74 ASSERT(WTF::isMainThread()); 76 75 77 return m_ duration;76 return m_playerPrivate.mediaSourcePrivateClient()->duration(); 78 77 } 79 78 … … 86 85 return; 87 86 88 m_duration = duration;89 87 m_playerPrivate.durationChanged(); 90 88 } -
trunk/Source/WebCore/platform/graphics/gstreamer/mse/MediaSourceClientGStreamerMSE.h
r263656 r264166 55 55 void allSamplesInTrackEnqueued(const AtomString&); 56 56 57 const MediaTime&duration();57 MediaTime duration(); 58 58 GRefPtr<WebKitMediaSrc> webKitMediaSrc(); 59 59 … … 62 62 63 63 MediaPlayerPrivateGStreamerMSE& m_playerPrivate; 64 MediaTime m_duration;65 64 }; 66 65
Note:
See TracChangeset
for help on using the changeset viewer.