i have an MJPEG stream over RTSP/UDP from which i want to generate JPEGs for a UIImageView with [UIImage initWithData:]. Most of the time this works good, but sometimes i get corrupt images and log messages like:
ImageIO: <ERROR> JPEGCorrupt JPEG data: premature end of data segment
My Question is: how can i see (during runtime), that such message occurs? Unfortunatly 'initWithData' has no error output, is there any other way?
Thank you.
Edit: in this case, the initWithData does return a valid UIImage object, not nil!