Repository navigation
Conversation
4e10a78 to
31a4a16
Compare
Transition from using popen() to using fork()/dup2()/execl() to provide a way to read stderr from ffmpeg.
efe8791 to
6a73238
Compare
|
I discovered that using I was unable to identify what the difference was that was causing the issue, but when using |
|
As part of my investigation, I also moved from using |
| pipe.read_pipe = *type == 'r'; | ||
| process_pipe.read_pipe = *type == 'r'; | ||
|
|
||
| int mainfds[2], errfds[2]; |
There was a problem hiding this comment.
Code style: Use two separate lines for declaration. I guess the arrays are initialised with zeroes by default, so additional initialisation is not necessary.
|
I am not using OBS anymore and am unlikely to continue work on this. If @PatTheMav or anyone else would like to pick this up, please feel free. |
|
Closing in favour of #10070. |
Description
Transition from using
popen()to usingposix_spawn()to provide a wayto read stderr from ffmpeg.
Fixes #9665
Motivation and Context
The Windows implementation of
os_process_pipeprovides anos_process_pipe_read_err()function to return stderr from the remux process but it has not been implemented for POSIX operating systems. This uses the standard way of extendingpopen()to take more control over process creation.How Has This Been Tested?
I've tested this with another fix (coming soon) to use an
srt://URL as a custom stream destination and then saw that the error response was displayed in the dialog box.I also tested starting and stopping recordings and saw no difference in behavior.
Types of changes
Checklist: