From 463eda98806f72180f340abbb93ae42e2fed504c Mon Sep 17 00:00:00 2001
From: Zhao Zhili <quinkblack@foxmail.com>
Date: Fri, 8 Jun 2018 17:47:17 +0800
Subject: [PATCH] codec: rawvideo: set pf_flush callback for packetizer

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
---
 modules/codec/rawvideo.c | 3 +++
 1 file changed, 3 insertions(+)

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