[vlc-devel] [V2 11/14] codec: rawvideo: set pf_flush callback for packetizer

Zhao Zhili quinkblack at foxmail.com
Fri Jun 8 11:47:17 CEST 2018


---
 modules/codec/rawvideo.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/codec/rawvideo.c b/modules/codec/rawvideo.c
index fe77a20..6fd1780 100644
--- a/modules/codec/rawvideo.c
+++ b/modules/codec/rawvideo.c
@@ -308,7 +308,10 @@ static int OpenPacketizer( vlc_object_t *p_this )
 
     int ret = OpenCommon( p_dec );
     if( ret == VLC_SUCCESS )
+    {
         p_dec->pf_packetize = SendFrame;
+        p_dec->pf_flush = Flush;
+    }
     return ret;
 }
 
-- 
2.9.5





More information about the vlc-devel mailing list