I added an override of the -awakeFromNib method, so that a MotionJpegImageView will work properly when loaded from a NIB instead of being initialized with -initWithFrame.
Without this override, if the view is loaded from a NIB, the view crashes when data is received, because _endMarkerData is not initialized.
I added an override of the -awakeFromNib method, so that a MotionJpegImageView will work properly when loaded from a NIB instead of being initialized with -initWithFrame.
Without this override, if the view is loaded from a NIB, the view crashes when data is received, because _endMarkerData is not initialized.