Skip to content

Video/AudioDecoder: fix the codec state when calling decoder destructor #296

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

Merged
merged 4 commits into from
Jan 31, 2017

Conversation

cchampet
Copy link
Member

This PR fixes our paddef issue XDMAT-525.

To be able to close a codec from outside of the class without calling ffmpeg/libav methods.
@valnoel
Copy link
Member

valnoel commented Jan 18, 2017

@adoussot @cchampet LGTM!

Clement Champetier added 2 commits January 18, 2017 17:13
* The decoder can open the codec (and so there is a flag _isSetup to check this).
* If the codec was open by the decoder, it should close it at the end of its life.
* So the codec itself is not responsible to close its context.
The StreamTranscoders have to be destroy (close codec included) before
removing the InputFiles (streams).
@cchampet cchampet force-pushed the fix_DecodersCloseCodec branch from 4d19e67 to aa9387e Compare January 18, 2017 16:17
@cchampet
Copy link
Member Author

Some tests did not pass because the objects were not destroyed in the correct order (since the decoders are responsible to close the codecs). The last commits should fix this issue. Waiting the results of CI...

* Force to call the reader destructor before the inputFile destructor
(which cannot happen in C++).
* This is a new problem since the decoder has a link to the stream,
which is needed to access the codec to close it. So the file, which
handles the streams, should not be destroyed before the decoders.
@coveralls
Copy link

coveralls commented Jan 30, 2017

Coverage Status

Coverage increased (+0.02%) to 78.246% when pulling ca157d8 on cchampet:fix_DecodersCloseCodec into 354c5b2 on avTranscoder:develop.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 78.246% when pulling ca157d8 on cchampet:fix_DecodersCloseCodec into 354c5b2 on avTranscoder:develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 78.246% when pulling ca157d8 on cchampet:fix_DecodersCloseCodec into 354c5b2 on avTranscoder:develop.

@cchampet cchampet merged commit 928309b into avTranscoder:develop Jan 31, 2017
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.

4 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy