Make the decoder independant of the SDL even mechanism, by registering a callback on the video_buffer.