Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quit wf-recorder when the recording target fails #94

Merged
merged 1 commit into from
May 27, 2020

Conversation

progandy
Copy link
Contributor

@progandy progandy commented May 9, 2020

This can happen when the sdl muxer is used and the window is closed or when the target file reaches the filesystem limits.

./wf-recorder -c rawvideo -m sdl  -f pipe:mirror

I am not sure if this is the best solution, but it was the quickest fix.

src/frame-writer.cpp Outdated Show resolved Hide resolved
@@ -10,6 +10,7 @@
#include <cstring>
#include "averr.h"

extern std::atomic<bool> exit_main_loop;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a comment where this comes from (main.cpp in this case).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or maybe it is better to add a reference to that variable in FrameWriterParams instead?

This can happen when the sdl muxer is used and the window is closed or when the target file reaches the filesystem limits.

    ./wf-recorder -c rawvideo -m sdl  -f pipe:mirror
Copy link
Owner

@ammen99 ammen99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ammen99 ammen99 merged commit 184a2c9 into ammen99:master May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants