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

VideoPlayerVideo: Need to clear pictures before switching decoder #9861

Merged
merged 2 commits into from May 23, 2016

Conversation

popcornmix
Copy link
Member

The new decoder may not know how clear a picture initialised from a different decoder.
For example MMALCodec wants Release() called on clear, but VideoCodecFFMPEG does not.

@popcornmix
Copy link
Member Author

ping @FernetMenta

@@ -179,8 +179,11 @@ void CVideoPlayerVideo::OpenStream(CDVDStreamInfo &hint, CDVDVideoCodec* codec)
m_fForcedAspectRatio = 0.0;

if (m_pVideoCodec)
{
m_pVideoCodec->ClearPicture(&m_picture);
m_pVideoCodec->Dispose();

This comment was marked as spam.

@popcornmix
Copy link
Member Author

@FernetMenta updated

@@ -99,6 +99,8 @@ CVideoPlayerVideo::CVideoPlayerVideo(CDVDClock* pClock

CVideoPlayerVideo::~CVideoPlayerVideo()
{
if (m_pVideoCodec)
m_pVideoCodec->Dispose();

This comment was marked as spam.

Codecs already call this from their destructors
The new decoder may not know how clear a picture initialised from a different decoder.
For example MMALCodec wants Release() called on clear, but VideoCodecFFMPEG does not.
@popcornmix
Copy link
Member Author

@FernetMenta updated

@FernetMenta
Copy link
Contributor

+1, thanks

@FernetMenta FernetMenta added Type: Fix non-breaking change which fixes an issue v17 Krypton Component: Video labels May 22, 2016
@FernetMenta FernetMenta added this to the Krypton 17.0-alpha2 milestone May 22, 2016
@popcornmix
Copy link
Member Author

jenkins build this please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Video Type: Fix non-breaking change which fixes an issue v17 Krypton
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants