[vlc-commits] vout_subpictures: force ephemer flag on stop time less spu
Francois Cartegnie
git at videolan.org
Mon Jan 6 18:39:31 CET 2020
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Dec 23 17:37:33 2019 +0100| [0b8f71f51dc9872a8de1732ba6fcae40f41e1cfc] | committer: Francois Cartegnie
vout_subpictures: force ephemer flag on stop time less spu
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0b8f71f51dc9872a8de1732ba6fcae40f41e1cfc
---
src/video_output/vout_subpictures.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c
index 71dc5e6648..3efd76ff1d 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -701,6 +701,11 @@ spu_SelectSubpictures(spu_t *spu, vlc_tick_t system_now,
selected_max_order = current->i_order;
}
+ /* An ephemer with stop time can be ephemer,
+ but a pic without stop time must be ephemer */
+ if(current->i_stop < current->i_start)
+ current->b_ephemer = true;
+
/* If the spu is ephemer, the stop time is invalid, but it has been converted to
system time and used in comparisons below */
const bool is_stop_valid = !current->b_ephemer || render_entry->orgstop > render_entry->orgstart;
More information about the vlc-commits
mailing list