raster pushed a commit to branch master.

http://git.enlightenment.org/apps/rage.git/commit/?id=52943e5ec7275a1dc8190cc44a1293414ba02619

commit 52943e5ec7275a1dc8190cc44a1293414ba02619
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Sun Sep 26 21:21:28 2021 +0100

    subtitle mute - ensure we unmute subs is sub file used
---
 src/bin/video.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/bin/video.c b/src/bin/video.c
index 25f6842..d3829b3 100644
--- a/src/bin/video.c
+++ b/src/bin/video.c
@@ -696,6 +696,10 @@ video_sub_file_set(Evas_Object *obj, const char *file)
 {
    Video *sd = evas_object_smart_data_get(obj);
    if (!sd) return;
+   if ((!file) || (file && (!file[0])))
+     emotion_object_spu_mute_set(sd->o_vid, EINA_TRUE);
+   else
+     emotion_object_spu_mute_set(sd->o_vid, EINA_FALSE);
    emotion_object_video_subtitle_file_set(sd->o_vid, file);
 }
 

-- 


Reply via email to