[vlc-devel] [PATCH v1 25/33] video_filter: add a helper function to push the output picture

Steve Lhomme robux4 at ycbcr.xyz
Fri Sep 25 16:47:01 CEST 2020


---
 modules/video_filter/filter_picture.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/modules/video_filter/filter_picture.h b/modules/video_filter/filter_picture.h
index 43bde3f237f..9a06e659939 100644
--- a/modules/video_filter/filter_picture.h
+++ b/modules/video_filter/filter_picture.h
@@ -162,3 +162,10 @@ static inline picture_t *CopyInfoAndRelease( picture_t *p_outpic, picture_t *p_i
 
     return p_outpic;
 }
+
+static inline int CopyInfoAndPush( picture_t *p_outpic, picture_t *p_inpic,
+                                   struct vlc_video_sink *sink )
+{
+    CopyInfoAndRelease( p_outpic, p_inpic );
+    return vlc_video_sink_PutPicture( sink, p_outpic );
+}
-- 
2.26.2



More information about the vlc-devel mailing list