Bug 254661 - SourceBufferPrivateClient::InitializationSegment should be using Ref<T>
Summary: SourceBufferPrivateClient::InitializationSegment should be using Ref<T>
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jean-Yves Avenard [:jya]
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-03-29 06:57 PDT by Jean-Yves Avenard [:jya]
Modified: 2023-03-29 06:58 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Yves Avenard [:jya] 2023-03-29 06:57:58 PDT
```
        struct AudioTrackInformation {
            RefPtr<MediaDescription> description;
            RefPtr<AudioTrackPrivate> track;
        };
        Vector<AudioTrackInformation> audioTracks;

        struct VideoTrackInformation {
            RefPtr<MediaDescription> description;
            RefPtr<VideoTrackPrivate> track;
        };
        Vector<VideoTrackInformation> videoTracks;

        struct TextTrackInformation {
            RefPtr<MediaDescription> description;
            RefPtr<InbandTextTrackPrivate> track;
        };
```

They can never be null, I believe RefPtr was used as Ref<t> didn't exist at the time
Comment 1 Radar WebKit Bug Importer 2023-03-29 06:58:18 PDT
<rdar://problem/107366003>