Skip to content

Commit f1fda45

Browse files
my3fsouza
authored andcommitted
fix build errors (#207)
1 parent f3a435d commit f1fda45

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

provider/bitmovin/bitmovin.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ func (p *bitmovinProvider) Transcode(job *db.Job) (*provider.JobStatus, error) {
769769
StreamConditionsMode: bitmovintypes.ConditionModeDropStream,
770770
}
771771
videoMuxingResp, vmErr := encodingS.AddMP4Muxing(*encodingResp.Data.Result.ID, videoMuxing)
772-
if err != nil {
772+
if vmErr != nil {
773773
return nil, vmErr
774774
}
775775
if videoMuxingResp.Status == bitmovinAPIErrorMsg {
@@ -788,7 +788,7 @@ func (p *bitmovinProvider) Transcode(job *db.Job) (*provider.JobStatus, error) {
788788
StreamConditionsMode: bitmovintypes.ConditionModeDropStream,
789789
}
790790
videoMuxingResp, vmErr := encodingS.AddProgressiveMOVMuxing(*encodingResp.Data.Result.ID, videoMuxing)
791-
if err != nil {
791+
if vmErr != nil {
792792
return nil, vmErr
793793
}
794794
if videoMuxingResp.Status == bitmovinAPIErrorMsg {
@@ -885,7 +885,7 @@ func (p *bitmovinProvider) Transcode(job *db.Job) (*provider.JobStatus, error) {
885885
StreamConditionsMode: bitmovintypes.ConditionModeDropStream,
886886
}
887887
videoMuxingResp, vmErr := encodingS.AddProgressiveWebMMuxing(*encodingResp.Data.Result.ID, videoMuxing)
888-
if err != nil {
888+
if vmErr != nil {
889889
return nil, vmErr
890890
}
891891
if videoMuxingResp.Status == bitmovinAPIErrorMsg {

provider/zencoder/zencoder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func (z *zencoderProvider) isOutputCompatible(hlsOutput, mp4Output *zencoder.Out
151151
}
152152
hls := localHlsPreset.(*db.LocalPreset)
153153

154-
localMp4Preset, _ := z.GetPreset(mp4Output.Label)
154+
localMp4Preset, err := z.GetPreset(mp4Output.Label)
155155
if err != nil {
156156
return false, err
157157
}

0 commit comments

Comments
 (0)