summaryrefslogtreecommitdiff
path: root/legacy/emotion/src/lib/emotion_smart.c
diff options
context:
space:
mode:
authorLeandro Dorileo <dorileo@profusion.mobi>2013-01-02 21:03:30 +0000
committerLeandro Dorileo <dorileo@profusion.mobi>2013-01-02 21:03:30 +0000
commite3e1511bacd6f7b528f860408a18dc4fb76f3070 (patch)
treee3cf55bd13fb4c8ad8187d074baa0ad77b4fcdd2 /legacy/emotion/src/lib/emotion_smart.c
parent37bcda87ed63e79a8a3b39431cfe9bf9233e12ce (diff)
Emotion: introce emotion_object_video_subtitle_file_set() call
For setting an arbitrary subtitle file, this patch introduces the emotion_object_video_subtitle_file_set() and its counterpart emotion_object_video_subtitle_file_get(). The tag @sice were added as 1.7.2 since we're preparing a backport to stable tree. SVN revision: 82019
Diffstat (limited to 'legacy/emotion/src/lib/emotion_smart.c')
-rw-r--r--legacy/emotion/src/lib/emotion_smart.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/legacy/emotion/src/lib/emotion_smart.c b/legacy/emotion/src/lib/emotion_smart.c
index 48eafdacc7..8a80f838db 100644
--- a/legacy/emotion/src/lib/emotion_smart.c
+++ b/legacy/emotion/src/lib/emotion_smart.c
@@ -999,6 +999,29 @@ emotion_object_video_mute_get(const Evas_Object *obj)
999 return sd->module->video_channel_mute_get(sd->video_data); 999 return sd->module->video_channel_mute_get(sd->video_data);
1000} 1000}
1001 1001
1002EAPI void
1003emotion_object_video_subtitle_file_set(Evas_Object *obj, const char *filepath)
1004{
1005 Smart_Data *sd;
1006
1007 E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME);
1008 DBG("subtitle=%s", filepath);
1009 if (!sd->module) return;
1010 if (!sd->video_data) return;
1011 sd->module->video_subtitle_file_set(sd->video_data, filepath);
1012}
1013
1014EAPI const char *
1015emotion_object_video_subtitle_file_get(const Evas_Object *obj)
1016{
1017 Smart_Data *sd;
1018
1019 E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, 0);
1020 if (!sd->module) return EINA_FALSE;
1021 if (!sd->video_data) return EINA_FALSE;
1022 return sd->module->video_subtitle_file_get(sd->video_data);
1023}
1024
1002EAPI int 1025EAPI int
1003emotion_object_video_channel_count(const Evas_Object *obj) 1026emotion_object_video_channel_count(const Evas_Object *obj)
1004{ 1027{