diff --git a/provider/bitmovin/bitmovin.go b/provider/bitmovin/bitmovin.go index 1f4b05a7..a5bb1aed 100644 --- a/provider/bitmovin/bitmovin.go +++ b/provider/bitmovin/bitmovin.go @@ -769,7 +769,7 @@ func (p *bitmovinProvider) Transcode(job *db.Job) (*provider.JobStatus, error) { StreamConditionsMode: bitmovintypes.ConditionModeDropStream, } videoMuxingResp, vmErr := encodingS.AddMP4Muxing(*encodingResp.Data.Result.ID, videoMuxing) - if err != nil { + if vmErr != nil { return nil, vmErr } if videoMuxingResp.Status == bitmovinAPIErrorMsg { @@ -788,7 +788,7 @@ func (p *bitmovinProvider) Transcode(job *db.Job) (*provider.JobStatus, error) { StreamConditionsMode: bitmovintypes.ConditionModeDropStream, } videoMuxingResp, vmErr := encodingS.AddProgressiveMOVMuxing(*encodingResp.Data.Result.ID, videoMuxing) - if err != nil { + if vmErr != nil { return nil, vmErr } if videoMuxingResp.Status == bitmovinAPIErrorMsg { @@ -885,7 +885,7 @@ func (p *bitmovinProvider) Transcode(job *db.Job) (*provider.JobStatus, error) { StreamConditionsMode: bitmovintypes.ConditionModeDropStream, } videoMuxingResp, vmErr := encodingS.AddProgressiveWebMMuxing(*encodingResp.Data.Result.ID, videoMuxing) - if err != nil { + if vmErr != nil { return nil, vmErr } if videoMuxingResp.Status == bitmovinAPIErrorMsg { diff --git a/provider/zencoder/zencoder.go b/provider/zencoder/zencoder.go index ea6b0f65..5064aef2 100644 --- a/provider/zencoder/zencoder.go +++ b/provider/zencoder/zencoder.go @@ -151,7 +151,7 @@ func (z *zencoderProvider) isOutputCompatible(hlsOutput, mp4Output *zencoder.Out } hls := localHlsPreset.(*db.LocalPreset) - localMp4Preset, _ := z.GetPreset(mp4Output.Label) + localMp4Preset, err := z.GetPreset(mp4Output.Label) if err != nil { return false, err }