فهرست منبع

libobs: Make filter_video callback param non-const

The frame is definitely meant to be modifiable if needed, so it
shouldn't be const.  I originally meant for these frames to be
duplicated, but with the source video cache that's both unnecessary and
would reduce performance.
jp9000 10 سال پیش
والد
کامیت
38cb1ed39b
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      libobs/obs-source.h

+ 1 - 1
libobs/obs-source.h

@@ -250,7 +250,7 @@ struct obs_source_info {
 	 *                be drawn later if time is needed for processing
 	 *                be drawn later if time is needed for processing
 	 */
 	 */
 	struct obs_source_frame *(*filter_video)(void *data,
 	struct obs_source_frame *(*filter_video)(void *data,
-			const struct obs_source_frame *frame);
+			struct obs_source_frame *frame);
 
 
 	/**
 	/**
 	 * Called to filter raw audio data.
 	 * Called to filter raw audio data.