vout_subpictures: force ephemer flag on stop time less spu
authorFrancois Cartegnie <fcvlcdev@free.fr>
Mon, 23 Dec 2019 16:37:33 +0000 (17:37 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Mon, 6 Jan 2020 16:34:34 +0000 (17:34 +0100)
src/video_output/vout_subpictures.c

index 71dc5e6..3efd76f 100644 (file)
@@ -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;