[vlc-devel] [PATCH 03/17] vout: spu: don't return empty arrays
Thomas Guillem
thomas at gllm.fr
Mon Feb 15 10:14:58 UTC 2021
---
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 f60c6f57973..a2e9072dab6 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -780,6 +780,11 @@ spu_SelectSubpictures(spu_t *spu, vlc_tick_t system_now,
}
sys->last_sort_date = render_subtitle_date;
+ if (*subpicture_count == 0)
+ {
+ free(subpicture_array);
+ subpicture_array = NULL;
+ }
return subpicture_array;
}
--
2.30.0
More information about the vlc-devel
mailing list