From: doursse Date: Sat, 18 Jun 2005 05:29:25 +0000 (+0000) Subject: indentation X-Git-Tag: submit/2.0alpha-wayland/20121127.222018~562 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=821b0d4c21cb9f63624e36cac47e79649260af63;p=profile%2Fivi%2Femotion.git indentation git-svn-id: http://svn.enlightenment.org/svn/e/trunk/e17/libs/emotion@15418 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/emotion_smart.c b/src/lib/emotion_smart.c index b49f097..834841b 100644 --- a/src/lib/emotion_smart.c +++ b/src/lib/emotion_smart.c @@ -160,11 +160,11 @@ emotion_object_init(Evas_Object *obj) sd->seek_pos = 0; sd->len = 0; - if (!sd->module || !sd->video) - { - if (!_emotion_module_open("emotion_decoder_xine.so", obj, &sd->module, &sd->video)) - return 0; - } + if (!sd->module || !sd->video) + { + if (!_emotion_module_open("emotion_decoder_xine.so", obj, &sd->module, &sd->video)) + return 0; + } return 1; } @@ -180,27 +180,28 @@ emotion_object_file_set(Evas_Object *obj, const char *file) if ((file) && (strlen(file) > 0)) { - int w, h; + int w, h; - if (!emotion_object_init(obj)) - return; + if (!emotion_object_init(obj)) + return; sd->file = strdup(file); if (sd->module) { sd->module->file_close(sd->video); evas_object_image_size_set(sd->obj, 0, 0); } - if (!sd->module->file_open(sd->file, obj, sd->video)) - return; - sd->module->size_get(sd->video, &w, &h); - evas_object_image_size_set(sd->obj, w, h); - sd->ratio = sd->module->ratio_get(sd->video); - sd->pos = 0.0; - if (sd->play) sd->module->play(sd->video, 0.0); + if (!sd->module->file_open(sd->file, obj, sd->video)) + return; + sd->module->size_get(sd->video, &w, &h); + evas_object_image_size_set(sd->obj, w, h); + sd->ratio = sd->module->ratio_get(sd->video); + sd->pos = 0.0; + if (sd->play) + sd->module->play(sd->video, 0.0); } else { - if (sd->video && sd->module) + if (sd->video && sd->module) { sd->module->file_close(sd->video); sd->video = NULL;