summaryrefslogtreecommitdiffstats
path: root/video/out/vo.h
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/vo.h')
-rw-r--r--video/out/vo.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/video/out/vo.h b/video/out/vo.h
index e11c23a60a..a6c6a3ce6e 100644
--- a/video/out/vo.h
+++ b/video/out/vo.h
@@ -305,6 +305,9 @@ struct vo_driver {
// Disable video timing, push frames as quickly as possible, never redraw.
bool untimed;
+ // The VO is responsible for freeing frames.
+ bool frame_owner;
+
const char *name;
const char *description;
@@ -381,7 +384,8 @@ struct vo_driver {
/* Render the given frame. Note that this is also called when repeating
* or redrawing frames.
*
- * frame is freed by the caller, but the callee can still modify the
+ * frame is freed by the caller if the callee did not assume ownership
+ * of the frames, but in any case the callee can still modify the
* contained data and references.
*/
void (*draw_frame)(struct vo *vo, struct vo_frame *frame);