summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-09-26 21:21:28 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-09-26 21:21:28 +0100
commit52943e5ec7275a1dc8190cc44a1293414ba02619 (patch)
tree13c991ce0c953c669fa12f27f614360a517294b8
parentfb32501827e19a580a0f44b23ce25412eae8d8ee (diff)
subtitle mute - ensure we unmute subs is sub file used
-rw-r--r--src/bin/video.c4
1 files changed, 4 insertions, 0 deletions
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)
696{ 696{
697 Video *sd = evas_object_smart_data_get(obj); 697 Video *sd = evas_object_smart_data_get(obj);
698 if (!sd) return; 698 if (!sd) return;
699 if ((!file) || (file && (!file[0])))
700 emotion_object_spu_mute_set(sd->o_vid, EINA_TRUE);
701 else
702 emotion_object_spu_mute_set(sd->o_vid, EINA_FALSE);
699 emotion_object_video_subtitle_file_set(sd->o_vid, file); 703 emotion_object_video_subtitle_file_set(sd->o_vid, file);
700} 704}
701 705