@@ -210,8 +210,8 @@ export default class BufferController extends Logger implements ComponentAPI {
210210 }
211211 const transferData = this . transferData ;
212212 if (
213- ! this . sourceBufferCount &&
214213 transferData &&
214+ ! this . sourceBufferCount &&
215215 transferData . mediaSource === mediaSource
216216 ) {
217217 Object . assign ( tracks , transferData . tracks ) ;
@@ -779,7 +779,7 @@ transfer tracks: ${stringify(transferredTracks, (key, value) => (key === 'initSe
779779 if ( fragBuffering . start === 0 ) {
780780 fragBuffering . start = bufferAppendingStart ;
781781 }
782- if ( partBuffering && partBuffering . start === 0 ) {
782+ if ( partBuffering ? .start === 0 ) {
783783 partBuffering . start = bufferAppendingStart ;
784784 }
785785
@@ -867,7 +867,7 @@ transfer tracks: ${stringify(transferredTracks, (key, value) => (key === 'initSe
867867 if ( fragBuffering . first === 0 ) {
868868 fragBuffering . first = end ;
869869 }
870- if ( partBuffering && partBuffering . first === 0 ) {
870+ if ( partBuffering ? .first === 0 ) {
871871 partBuffering . first = end ;
872872 }
873873
@@ -1086,7 +1086,7 @@ transfer tracks: ${stringify(transferredTracks, (key, value) => (key === 'initSe
10861086 this . blockUntilOpen ( ( ) => {
10871087 this . tracksEnded ( ) ;
10881088 const { mediaSource } = this ;
1089- if ( ! mediaSource || mediaSource . readyState !== 'open' ) {
1089+ if ( mediaSource ? .readyState !== 'open' ) {
10901090 if ( mediaSource ) {
10911091 this . log (
10921092 `Could not call mediaSource.endOfStream(). mediaSource.readyState: ${ mediaSource . readyState } ` ,
@@ -1342,7 +1342,7 @@ transfer tracks: ${stringify(transferredTracks, (key, value) => (key === 'initSe
13421342 end ?: number ;
13431343 } ) {
13441344 const mediaSource = this . mediaSource ;
1345- if ( ! this . media || ! mediaSource || mediaSource . readyState !== 'open' ) {
1345+ if ( ! mediaSource || ! this . media || mediaSource . readyState !== 'open' ) {
13461346 return ;
13471347 }
13481348 if ( mediaSource . duration !== duration ) {
0 commit comments