summaryrefslogtreecommitdiff
path: root/legacy/emotion/src/lib/emotion_smart.c
diff options
context:
space:
mode:
authordoursse <doursse>2005-06-18 05:29:25 +0000
committerdoursse <doursse@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2005-06-18 05:29:25 +0000
commit08fec2cfb5329c437cb4ae35c5afbc51fbdd5bfa (patch)
treedba8890bdb68dd38a39f23b9ccb66a09b464684a /legacy/emotion/src/lib/emotion_smart.c
parent887c8ed2b0d6caf5022b737f8a77807f8910dcb4 (diff)
indentation
SVN revision: 15418
Diffstat (limited to '')
-rw-r--r--legacy/emotion/src/lib/emotion_smart.c33
1 files changed, 17 insertions, 16 deletions
diff --git a/legacy/emotion/src/lib/emotion_smart.c b/legacy/emotion/src/lib/emotion_smart.c
index b49f097921..834841b038 100644
--- a/legacy/emotion/src/lib/emotion_smart.c
+++ b/legacy/emotion/src/lib/emotion_smart.c
@@ -160,11 +160,11 @@ emotion_object_init(Evas_Object *obj)
160 sd->seek_pos = 0; 160 sd->seek_pos = 0;
161 sd->len = 0; 161 sd->len = 0;
162 162
163 if (!sd->module || !sd->video) 163 if (!sd->module || !sd->video)
164 { 164 {
165 if (!_emotion_module_open("emotion_decoder_xine.so", obj, &sd->module, &sd->video)) 165 if (!_emotion_module_open("emotion_decoder_xine.so", obj, &sd->module, &sd->video))
166 return 0; 166 return 0;
167 } 167 }
168 168
169 return 1; 169 return 1;
170} 170}
@@ -180,27 +180,28 @@ emotion_object_file_set(Evas_Object *obj, const char *file)
180 180
181 if ((file) && (strlen(file) > 0)) 181 if ((file) && (strlen(file) > 0))
182 { 182 {
183 int w, h; 183 int w, h;
184 184
185 if (!emotion_object_init(obj)) 185 if (!emotion_object_init(obj))
186 return; 186 return;
187 sd->file = strdup(file); 187 sd->file = strdup(file);
188 if (sd->module) 188 if (sd->module)
189 { 189 {
190 sd->module->file_close(sd->video); 190 sd->module->file_close(sd->video);
191 evas_object_image_size_set(sd->obj, 0, 0); 191 evas_object_image_size_set(sd->obj, 0, 0);
192 } 192 }
193 if (!sd->module->file_open(sd->file, obj, sd->video)) 193 if (!sd->module->file_open(sd->file, obj, sd->video))
194 return; 194 return;
195 sd->module->size_get(sd->video, &w, &h); 195 sd->module->size_get(sd->video, &w, &h);
196 evas_object_image_size_set(sd->obj, w, h); 196 evas_object_image_size_set(sd->obj, w, h);
197 sd->ratio = sd->module->ratio_get(sd->video); 197 sd->ratio = sd->module->ratio_get(sd->video);
198 sd->pos = 0.0; 198 sd->pos = 0.0;
199 if (sd->play) sd->module->play(sd->video, 0.0); 199 if (sd->play)
200 sd->module->play(sd->video, 0.0);
200 } 201 }
201 else 202 else
202 { 203 {
203 if (sd->video && sd->module) 204 if (sd->video && sd->module)
204 { 205 {
205 sd->module->file_close(sd->video); 206 sd->module->file_close(sd->video);
206 sd->video = NULL; 207 sd->video = NULL;