From 850a9f7e0c9c38e0ba8d920dc5b76e80c234e9c3 Mon Sep 17 00:00:00 2001 From: "leo.lu" Date: Tue, 20 Jun 2023 17:16:18 +0800 Subject: [PATCH] make gst play video more sync --- .../0021-make-gst-play-video-more-sync.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 package/starfive/sf-gst-omx/0021-make-gst-play-video-more-sync.patch diff --git a/package/starfive/sf-gst-omx/0021-make-gst-play-video-more-sync.patch b/package/starfive/sf-gst-omx/0021-make-gst-play-video-more-sync.patch new file mode 100644 index 00000000..d8a39e45 --- /dev/null +++ b/package/starfive/sf-gst-omx/0021-make-gst-play-video-more-sync.patch @@ -0,0 +1,19 @@ +Make gst play video more sync. + +Signed-off-by: Leo Lu + +diff -purN a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c +--- a/omx/gstomxvideodec.c 2023-06-20 15:16:16.141885955 +0800 ++++ b/omx/gstomxvideodec.c 2023-06-20 15:20:50.459552058 +0800 +@@ -1887,9 +1887,10 @@ gst_omx_video_dec_loop (GstOMXVideoDec * + * stream, corrupted input data... + * In any cases, not likely to be seen again. so drop it before they pile up + * and use all the memory. */ ++#ifndef USE_OMX_TARGET_STARFIVE + gst_omx_video_dec_clean_older_frames (self, buf, + gst_video_decoder_get_frames (GST_VIDEO_DECODER (self))); +- ++#endif + if (!frame && (buf->omx_buf->nFilledLen > 0 || buf->eglimage)) { + GstBuffer *outbuf = NULL; +