Disable verbose on wxImage::LoadFile Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
User avatar
rocrail
Super wx Problem Solver
Super wx Problem Solver
Posts: 293
Joined: Fri Oct 02, 2009 2:02 pm
Contact:

Disable verbose on wxImage::LoadFile

Post 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...
Best regards,
Rob.
https://wiki.rocrail.net
User avatar
rocrail
Super wx Problem Solver
Super wx Problem Solver
Posts: 293
Joined: Fri Oct 02, 2009 2:02 pm
Contact:

Re: Disable verbose on wxImage::LoadFile

Post by rocrail »

Calling
image.SetLoadFlags(image.GetLoadFlags() & ~wxImage::Load_Verbose);

does not disable the popups...
Last edited by rocrail on Mon Sep 09, 2019 9:42 am, edited 1 time in total.
Best regards,
Rob.
https://wiki.rocrail.net
User avatar
doublemax
Moderator
Moderator
Posts: 19114
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Disable verbose on wxImage::LoadFile

Post by doublemax »

Use the source, Luke!
User avatar
rocrail
Super wx Problem Solver
Super wx Problem Solver
Posts: 293
Joined: Fri Oct 02, 2009 2:02 pm
Contact:

Re: Disable verbose on wxImage::LoadFile

Post by rocrail »

Thanks, that solved it. :)
Best regards,
Rob.
https://wiki.rocrail.net
Post Reply