Merge pull request #1325 from exeldro/copy-frame

libobs: add obs_source_frame_copy
This commit is contained in:
Jim
2018-06-18 21:31:00 -07:00
committed by GitHub
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
}