Changeset 284770 in webkit
- Timestamp:
- Oct 24, 2021, 5:04:12 PM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm (modified) (1 diff)
-
platform/graphics/avfoundation/objc/VideoTrackPrivateAVFObjC.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r284769 r284770 1 2021-10-24 Jean-Yves Avenard <jya@apple.com> 2 3 Fix typo in MediaPlayerPrivateAVFoundationObjC::updateVideoTracks() 4 https://bugs.webkit.org/show_bug.cgi?id=232194 5 6 Reviewed by Darin Adler. 7 8 Reset video tracks' properties when video tracks are changing rather 9 than the audio ones. 10 11 There should be no observable changes, resetting the audio track properties 12 would have been a no-op as AudioTrackPrivateAVFObjC is just a wrapper around 13 AVPlayerItemTrack and properties are kept in sync thorough playback. 14 Not calling resetPropertiesFromTrack on the video track wouldn't have mattered 15 as the operation is called when the track is constructed above in the 16 determineChangedTracksFromNewTracksAndOldItems method. 17 So this code only improves readability, and could be removed entirely. 18 19 * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: 20 (WebCore::MediaPlayerPrivateAVFoundationObjC::updateVideoTracks): 21 * platform/graphics/avfoundation/objc/VideoTrackPrivateAVFObjC.h: 22 1 23 2021-10-24 Tyler Wilcock <tyler_w@apple.com> 2 24 -
trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm
r284737 r284770 2377 2377 determineChangedTracksFromNewTracksAndOldItems(m_visualGroup.get(), m_videoTracks, Vector<String>(), &VideoTrackPrivateAVFObjC::create, player(), &MediaPlayer::removeVideoTrack, &MediaPlayer::addVideoTrack); 2378 2378 2379 for (auto& track : m_ audioTracks)2379 for (auto& track : m_videoTracks) 2380 2380 track->resetPropertiesFromTrack(); 2381 2381 -
trunk/Source/WebCore/platform/graphics/avfoundation/objc/VideoTrackPrivateAVFObjC.h
r262695 r284770 72 72 73 73 private: 74 friend class MediaPlayerPrivateAVFoundationObjC; 74 75 explicit VideoTrackPrivateAVFObjC(AVPlayerItemTrack*); 75 76 explicit VideoTrackPrivateAVFObjC(AVAssetTrack*);
Note:
See TracChangeset
for help on using the changeset viewer.