Closed yurivict closed 4 years ago
Please fill in the issue template.
Please do not delete our issue template. It should be properly filled out.
Operating system and version: FreeBSD 12
OBS Studio version: 25.0.1
Failed to save the video to disk
Save the video to disk.
See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245299#c0
There are 2 problems:
This call failed on FreeBSD: https://github.com/obsproject/obs-studio/blob/master/libobs/util/platform-nix.c#L278 and obs-studio just accepted "-1" as "count", and just returned "NULL" to https://github.com/obsproject/obs-studio/blob/master/plugins/obs-ffmpeg/obs-ffmpeg-mux.c#L235 where NULL was just processed in a bogus way.
Please, always immediately check return codes of all system calls for errors, report the errors to the user using
strerror(errno)
, and terminate the application after the error message.The original bug report from the user: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245299