Browse Source

fix automatic playout building (#840)

pull/841/head
Jason Dove 4 years ago committed by GitHub
parent
commit
e41dd68ee0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      ErsatzTV.Application/Playouts/Commands/BuildPlayoutHandler.cs

3
ErsatzTV.Application/Playouts/Commands/BuildPlayoutHandler.cs

@ -50,7 +50,8 @@ public class BuildPlayoutHandler : IRequestHandler<BuildPlayout, Either<BaseErro @@ -50,7 +50,8 @@ public class BuildPlayoutHandler : IRequestHandler<BuildPlayout, Either<BaseErro
// let any active segmenter processes know that the playout has been modified
// and therefore the segmenter may need to seek into the next item instead of
// starting at the beginning (if already working ahead)
if (request.Mode != PlayoutBuildMode.Continue && await dbContext.SaveChangesAsync() > 0)
bool hasChanges = await dbContext.SaveChangesAsync() > 0;
if (request.Mode != PlayoutBuildMode.Continue && hasChanges)
{
_ffmpegSegmenterService.PlayoutUpdated(playout.Channel.Number);
}

Loading…
Cancel
Save