[vlc-commits] codec: rawvideo: set pf_flush callback for packetizer

Zhao Zhili git at videolan.org
Tue Jun 19 11:26:41 CEST 2018


vlc | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Fri Jun  8 17:47:17 2018 +0800| [463eda98806f72180f340abbb93ae42e2fed504c] | committer: Thomas Guillem

codec: rawvideo: set pf_flush callback for packetizer

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=463eda98806f72180f340abbb93ae42e2fed504c
---

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

diff --git a/modules/codec/rawvideo.c b/modules/codec/rawvideo.c
index fe77a20eee..6fd17808f6 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;
 }
 



More information about the vlc-commits mailing list