Merge pull request #177 from ekimekim/mike/fix-thrim-bug

Fix a bug when we fail to load a playlist that prevents loading other playlists
pull/183/head
Mike Lang 4 years ago committed by GitHub
commit d21b225a70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save