Expose screen as frame sink

Make screen implement the frame sink trait.

This will allow the decoder to push frames without depending on the
concrete sink type.
This commit is contained in:
Romain Vimont
2021-04-11 15:01:05 +02:00
parent deab7da761
commit 08b3086ffc
2 changed files with 36 additions and 0 deletions

View File

@@ -9,10 +9,13 @@
#include "coords.h"
#include "opengl.h"
#include "trait/frame_sink.h"
struct video_buffer;
struct screen {
struct sc_frame_sink frame_sink; // frame sink trait
struct video_buffer *vb;
struct fps_counter *fps_counter;