Page 1 of 1

Disable verbose on wxImage::LoadFile

Posted: Mon Sep 09, 2019 9:03 am
by rocrail
I'm implementing video streaming, and not all jpeg received data is OK.
Its OK that the LoadFile function returns false in case of corrupt data.
But, I want to switch off verbose:

Code: Select all

bool wxJPEGHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbose, int WXUNUSED(index) )
Every time corrupt data did come in, it pops up a message dialog...

Re: Disable verbose on wxImage::LoadFile

Posted: Mon Sep 09, 2019 9:26 am
by rocrail
Calling
image.SetLoadFlags(image.GetLoadFlags() & ~wxImage::Load_Verbose);

does not disable the popups...

Re: Disable verbose on wxImage::LoadFile

Posted: Mon Sep 09, 2019 9:42 am
by doublemax

Re: Disable verbose on wxImage::LoadFile

Posted: Mon Sep 09, 2019 9:49 am
by rocrail
Thanks, that solved it. :)