Fix a bug when we fail to load a playlist that prevents loading other playlists

pull/177/head
Mike Lang 4 years ago
parent 46d96bf900
commit a37d9a0c54

@ -199,7 +199,7 @@ loadPlaylist = function(isEditor, startTrim, endTrim, defaultQuality) {
var queryString = buildQuery(range); var queryString = buildQuery(range);
// Preserve existing edit times // Preserve existing edit times
if (player && player.trimmingControls) { if (player && player.trimmingControls && player.vhs.playlists.master) {
var discontinuities = mapDiscontinuities(); var discontinuities = mapDiscontinuities();
if (!startTrim) { if (!startTrim) {
startTrim = getRealTimeForPlayerTime(discontinuities, player.trimmingControls().options.startTrim); startTrim = getRealTimeForPlayerTime(discontinuities, player.trimmingControls().options.startTrim);

Loading…
Cancel
Save