summaryrefslogtreecommitdiff
path: root/src/screen
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen')
-rw-r--r--src/screen/screen.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/screen/screen.c b/src/screen/screen.c
index afc6b9b..30c77d6 100644
--- a/src/screen/screen.c
+++ b/src/screen/screen.c
@@ -1,8 +1,6 @@
#include <al/log.h>
#include <aki/thread.h>
-#include "../liana/list.h"
-
#include "view.h"
#include "screen.h"
@@ -325,19 +323,19 @@ static void add_buffer_internal(struct camu_screen *scr, struct camu_video_buffe
struct camu_screen_video video = {
.buf = buf
};
- struct camu_codec_stream *stream = buf->stream;
+ struct camu_video_format *fmt = &buf->fmt.req;
if (buf->view.mode != CAMU_VIEW_NONE) {
video.view = buf->view;
#if 0
} else if (!al_array_is_empty(scr->videos)) {
video.view = al_array_last(scr->videos).view;
- video.view.width = stream->video.width;
- video.view.height = stream->video.height;
+ video.view.width = fmt->width;
+ video.view.height = fmt->height;
#endif
} else {
video.view.mode = CAMU_DEFAULT_VIEW;
- video.view.width = stream->video.width;
- video.view.height = stream->video.height;
+ video.view.width = fmt->width;
+ video.view.height = fmt->height;
video.view.stretch = 1.0;
video.view.rotation = CAMU_VIEW_ROTATION_0;
video.view.zindex = 0;