summaryrefslogtreecommitdiff
path: root/legacy/emotion/src/lib/emotion_smart.c
diff options
context:
space:
mode:
authordoursse <doursse>2005-10-02 12:19:36 +0000
committerdoursse <doursse@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2005-10-02 12:19:36 +0000
commita5eb691aef7be9cb2876124a439f4ba4256aebf3 (patch)
tree71bd5af7b0be16e55027e715f27efebf6126f01c /legacy/emotion/src/lib/emotion_smart.c
parent4f5083d3b1dc388d44752d8c929d4f4a1e2f7502 (diff)
remove printf
SVN revision: 17109
Diffstat (limited to 'legacy/emotion/src/lib/emotion_smart.c')
-rw-r--r--legacy/emotion/src/lib/emotion_smart.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/legacy/emotion/src/lib/emotion_smart.c b/legacy/emotion/src/lib/emotion_smart.c
index 1d02acd9ed..6232115d9d 100644
--- a/legacy/emotion/src/lib/emotion_smart.c
+++ b/legacy/emotion/src/lib/emotion_smart.c
@@ -98,13 +98,11 @@ _emotion_module_open(const char *name, Evas_Object *obj, Emotion_Video_Module **
98 98
99 snprintf(buf, sizeof(buf), "%s%s", PACKAGE_LIB_DIR"/emotion/", 99 snprintf(buf, sizeof(buf), "%s%s", PACKAGE_LIB_DIR"/emotion/",
100 name); 100 name);
101 printf ("module : %s\n", buf);
102 handle = dlopen(buf, RTLD_NOW | RTLD_GLOBAL); 101 handle = dlopen(buf, RTLD_NOW | RTLD_GLOBAL);
103 if (handle) 102 if (handle)
104 { 103 {
105 unsigned char (*func_module_open)(Evas_Object *, Emotion_Video_Module **, void **); 104 unsigned char (*func_module_open)(Evas_Object *, Emotion_Video_Module **, void **);
106 105
107 printf ("module opened\n");
108 func_module_open = dlsym(handle, "module_open"); 106 func_module_open = dlsym(handle, "module_open");
109 if (func_module_open) 107 if (func_module_open)
110 { 108 {
@@ -120,7 +118,7 @@ _emotion_module_open(const char *name, Evas_Object *obj, Emotion_Video_Module **
120 { 118 {
121 char *err; 119 char *err;
122 err = dlerror(); 120 err = dlerror();
123 printf ("pas de module : %s\n", err); 121 printf ("No module. Error: %s\n", err);
124 } 122 }
125 return 0; 123 return 0;
126} 124}
@@ -173,12 +171,6 @@ emotion_object_init(Evas_Object *obj, const char *module_filename)
173 sd->pos = 0; 171 sd->pos = 0;
174 sd->seek_pos = 0; 172 sd->seek_pos = 0;
175 sd->len = 0; 173 sd->len = 0;
176
177 if (!sd->module || !sd->video)
178 {
179 if (!_emotion_module_open(module_filename, obj, &sd->module, &sd->video))
180 return 0;
181 }
182 174
183 if (!sd->module || !sd->video) 175 if (!sd->module || !sd->video)
184 if (!_emotion_module_open(module_filename, obj, &sd->module, &sd->video)) 176 if (!_emotion_module_open(module_filename, obj, &sd->module, &sd->video))
@@ -251,11 +243,9 @@ emotion_object_play_get(Evas_Object *obj)
251{ 243{
252 Smart_Data *sd; 244 Smart_Data *sd;
253 245
254 printf ("play get\n");
255 E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, 0); 246 E_SMART_OBJ_GET_RETURN(sd, obj, E_OBJ_NAME, 0);
256 printf ("play get1\n");
257 if (!sd->video) return 0; 247 if (!sd->video) return 0;
258 printf ("play get2\n"); 248
259 return sd->play; 249 return sd->play;
260} 250}
261 251
@@ -826,7 +816,7 @@ _emotion_frame_resize(Evas_Object *obj, int w, int h, double ratio)
826 Smart_Data *sd; 816 Smart_Data *sd;
827 int iw, ih; 817 int iw, ih;
828 int changed = 0; 818 int changed = 0;
829 printf ("frame resize %d %d\n", w, h); 819
830 E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME); 820 E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME);
831 evas_object_image_size_get(sd->obj, &iw, &ih); 821 evas_object_image_size_get(sd->obj, &iw, &ih);
832 if ((w != iw) || (h != ih)) 822 if ((w != iw) || (h != ih))