summaryrefslogtreecommitdiff
path: root/legacy/emotion/src/lib/emotion_smart.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2004-07-18 08:04:41 +0000
committerCarsten Haitzler <raster@rasterman.com>2004-07-18 08:04:41 +0000
commitad7ff874ab8704f24b04148a3bbe65d0fd5ff910 (patch)
treecf4e33fe95652095a07eb945d24eef515221b7bf /legacy/emotion/src/lib/emotion_smart.c
parent6b9f49e51f96fcd6d704d4b3fe8b6fa8b57b94bc (diff)
moved dome things off into threads of their own to minimise main ap impact
SVN revision: 10897
Diffstat (limited to '')
-rw-r--r--legacy/emotion/src/lib/emotion_smart.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/legacy/emotion/src/lib/emotion_smart.c b/legacy/emotion/src/lib/emotion_smart.c
index d33da425b8..89ca196fb0 100644
--- a/legacy/emotion/src/lib/emotion_smart.c
+++ b/legacy/emotion/src/lib/emotion_smart.c
@@ -163,12 +163,16 @@ emotion_object_file_set(Evas_Object *obj, const char *file)
163 sd->pos = 0; 163 sd->pos = 0;
164 sd->seek_pos = 0; 164 sd->seek_pos = 0;
165 sd->len = 0; 165 sd->len = 0;
166 if (file) 166 if ((file) && (strlen(file) > 0))
167 { 167 {
168 int w, h; 168 int w, h;
169 169
170 sd->file = strdup(file); 170 sd->file = strdup(file);
171 if (sd->video) sd->module->file_close(sd->video); 171 if (sd->video)
172 {
173 sd->module->file_close(sd->video);
174 evas_object_image_size_set(sd->obj, 0, 0);
175 }
172 if (sd->module) _emotion_module_close(sd->module); 176 if (sd->module) _emotion_module_close(sd->module);
173 sd->module = _emotion_module_open("emotion_decoder_xine.so"); 177 sd->module = _emotion_module_open("emotion_decoder_xine.so");
174 if (!sd->module) return; 178 if (!sd->module) return;