libobs: add obs_source_frame_copy

This commit is contained in:
Bas van Meel 2018-06-11 09:38:00 +02:00
parent d6759d15e0
commit 1653d258fe
2 changed files with 8 additions and 0 deletions

View File

@ -2288,6 +2288,12 @@ static void copy_frame_data(struct obs_source_frame *dst,
}
}
void obs_source_frame_copy(struct obs_source_frame *dst,
const struct obs_source_frame *src)
{
copy_frame_data(dst, src);
}
static inline bool async_texture_changed(struct obs_source *source,
const struct obs_source_frame *frame)
{

View File

@ -1991,6 +1991,8 @@ static inline void obs_source_frame_destroy(struct obs_source_frame *frame)
}
}
EXPORT void obs_source_frame_copy(struct obs_source_frame *dst,
const struct obs_source_frame *src);
#ifdef __cplusplus
}