Make the decoder independant of the SDL even mechanism, by making the consumer register a callback on the video_buffer.