Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
e4d39d64 by Steve Lhomme at 2024-04-03T18:18:46+00:00
vout_subpictures: ignore OSD rendering based on the subpicture i_channel

This feature is used to remove the OSD from snapshot renders.

DVD menus may disable the b_subtitle, but they should still be included in the
snapshots. Some non-subtitle SPUs (like a logo) should probably be included in
the snapshot too.

- - - - -


1 changed file:

- src/video_output/vout_subpictures.c


Changes:

=====================================
src/video_output/vout_subpictures.c
=====================================
@@ -805,7 +805,7 @@ spu_render_entry_IsSelected(spu_render_entry_t 
*render_entry, size_t channel_id,
     assert(subpic->i_channel >= 0 && (size_t) subpic->i_channel == channel_id);
     (void) channel_id;
 
-    if (ignore_osd && !subpic->b_subtitle)
+    if (ignore_osd && subpic->i_channel < VOUT_SPU_CHANNEL_OSD_COUNT)
         return false;
 
     assert(render_date != VLC_TICK_INVALID);



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

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


VideoLAN code repository instance
_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to