[vlc-commits] vout: subpictures: use define

Francois Cartegnie git at videolan.org
Tue Nov 13 16:01:15 CET 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Nov 12 10:31:48 2018 +0100| [2ba53a5f8995b381d0ac5f983384107556d654c9] | committer: Francois Cartegnie

vout: subpictures: use define

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2ba53a5f8995b381d0ac5f983384107556d654c9
---

 src/video_output/vout_subpictures.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c
index c627cb284a..21b31365cf 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -1640,7 +1640,8 @@ void spu_ClearChannel(spu_t *spu, int channel)
 
         if (!subpic)
             continue;
-        if (subpic->i_channel != channel && (channel != -1 || subpic->i_channel == VOUT_SPU_CHANNEL_OSD))
+        if (subpic->i_channel != channel &&
+            (channel != VOUT_SPU_CHANNEL_INVALID || subpic->i_channel == VOUT_SPU_CHANNEL_OSD))
             continue;
 
         /* You cannot delete subpicture outside of SpuSelectSubpictures */



More information about the vlc-commits mailing list