[vlc-commits] [Git][videolan/vlc][master] vout_subpictures: force original size after subpicture_Update() in prerender

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Sun Feb 23 17:42:47 UTC 2025



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
1ee29612 by Steve Lhomme at 2025-02-23T17:25:23+00:00
vout_subpictures: force original size after subpicture_Update() in prerender

It's only needed to render the subpicture. The updater should have priority,
as is done in the "last minute" rendering.

- - - - -


1 changed file:

- src/video_output/vout_subpictures.c


Changes:

=====================================
src/video_output/vout_subpictures.c
=====================================
@@ -1813,11 +1813,12 @@ static void * spu_PrerenderThread(void *priv)
 
         subpicture_t *p_subpic = sys->prerender.p_processed;
 
-        spu_UpdateOriginalSize(spu, p_subpic, &fmtsrc);
 
         subpicture_Update(p_subpic, &fmtsrc, &fmtdst,
                           p_subpic->b_subtitle ? p_subpic->i_start : vlc_tick_now());
 
+        spu_UpdateOriginalSize(spu, p_subpic, &fmtsrc);
+
         spu_PrerenderText(spu, p_subpic, chroma_list);
 
         vlc_mutex_lock(&sys->prerender.lock);



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1ee296121072011655d4e46b13ede63a496f5039

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1ee296121072011655d4e46b13ede63a496f5039
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list