mirror of
https://github.com/saily/vnc-recorder.git
synced 2025-04-27 18:25:13 +00:00
drop fallback with extension
Signed-off-by: Daniel Widerin <daniel@widerin.net>
This commit is contained in:
parent
0ad37313d2
commit
017af646de
@ -143,12 +143,7 @@ func (enc *X264ImageCustomEncoder) Init(videoFileName string) {
|
||||
}
|
||||
func (enc *X264ImageCustomEncoder) Run(videoFileName string) error {
|
||||
if _, err := os.Stat(enc.FFMpegBinPath); os.IsNotExist(err) {
|
||||
if _, err := os.Stat(enc.FFMpegBinPath + ".exe"); os.IsNotExist(err) {
|
||||
log.Error("encoder file doesn't exist in path:", enc.FFMpegBinPath)
|
||||
return errors.New("encoder file doesn't exist in path" + videoFileName)
|
||||
} else {
|
||||
enc.FFMpegBinPath = enc.FFMpegBinPath + ".exe"
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
enc.Init(videoFileName)
|
||||
|
Loading…
Reference in New Issue
Block a user