Skip to content

Commit efa5920

Browse files
committed
! Fix access from nullable object
1 parent 69e9500 commit efa5920

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderer/views/Watch/Watch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ export default defineComponent({
443443

444444
try {
445445
const { info: result, poToken, clientInfo, adEndTimeUnixMs } = await getLocalVideoInfo(this.videoId)
446-
const sabrShouldBeUsed = result.streaming_data.server_abr_streaming_url && result.player_config?.media_common_config?.media_ustreamer_request_config?.video_playback_ustreamer_config != null && this.sabrEnabled && !this.sabrReloadedTooManyTimes
446+
const sabrShouldBeUsed = result.streaming_data?.server_abr_streaming_url && result.player_config?.media_common_config?.media_ustreamer_request_config?.video_playback_ustreamer_config != null && this.sabrEnabled && !this.sabrReloadedTooManyTimes
447447
if (!sabrShouldBeUsed) {
448448
// The hack should only be used on non-SABR
449449
this.adEndTimeUnixMs = adEndTimeUnixMs

0 commit comments

Comments
 (0)