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
I live to help wx-kind
I live to help wx-kind
Posts: 179
Joined: Fri Oct 02, 2009 2:02 pm
Contact:

Disable verbose on wxImage::LoadFile

Post by rocrail » Mon Sep 09, 2019 9:03 am

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.

User avatar
rocrail
I live to help wx-kind
I live to help wx-kind
Posts: 179
Joined: Fri Oct 02, 2009 2:02 pm
Contact:

Re: Disable verbose on wxImage::LoadFile

Post by rocrail » Mon Sep 09, 2019 9:26 am

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.

User avatar
doublemax
Moderator
Moderator
Posts: 14098
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Disable verbose on wxImage::LoadFile

Post by doublemax » Mon Sep 09, 2019 9:42 am

Use the source, Luke!

User avatar
rocrail
I live to help wx-kind
I live to help wx-kind
Posts: 179
Joined: Fri Oct 02, 2009 2:02 pm
Contact:

Re: Disable verbose on wxImage::LoadFile

Post by rocrail » Mon Sep 09, 2019 9:49 am

Thanks, that solved it. :)
Best regards,
Rob.

Post Reply