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

exception thrown on file open #13

Open
rconde01 opened this Issue Aug 14, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@rconde01

rconde01 commented Aug 14, 2016

FFStream::init calls close. If a file is not open, this close call fails. In a default configuration this is not a problem. However, if you set the stream to throw exceptions on fail, then you get an exception when opening a file.

The solutions is to change the code to:

if(is_open())
   close();

...pull request to come.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment