diff options
author | doursse <doursse> | 2008-05-14 21:39:33 +0000 |
---|---|---|
committer | doursse <doursse@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33> | 2008-05-14 21:39:33 +0000 |
commit | ac834a27261b728920471cdb90a50af0218d6385 (patch) | |
tree | 73ee4de42cdc88ae39cefbd0d7d3c4bd1798d337 /legacy/emotion/src/lib/emotion_smart.c | |
parent | 86ffe2e5027f3055788dc8eb1ec843a5235ed33a (diff) |
Don't set sd->video to NULL. sd->video is initialized only when
emotion_object_init() is called. Hence, setting sd->video to NULL
there implied that the code:
emotion_object_init(o, module);
emotion_object_file_set(o, file1);
emotion_object_file_set(o, NULL);
emotion_object_file_set(o, file2);
seg fault.
(such code is useful when you want to reset the same stream
(file1 = file2). The other solution would be to destroy everything
and recreating the pipeline, which is not nice)
SVN revision: 34571
Diffstat (limited to '')
-rw-r--r-- | legacy/emotion/src/lib/emotion_smart.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/legacy/emotion/src/lib/emotion_smart.c b/legacy/emotion/src/lib/emotion_smart.c index 1fcdc9a0c9..a1bc7e9b29 100644 --- a/legacy/emotion/src/lib/emotion_smart.c +++ b/legacy/emotion/src/lib/emotion_smart.c | |||
@@ -254,7 +254,6 @@ emotion_object_file_set(Evas_Object *obj, const char *file) | |||
254 | if (sd->video && sd->module) | 254 | if (sd->video && sd->module) |
255 | { | 255 | { |
256 | sd->module->file_close(sd->video); | 256 | sd->module->file_close(sd->video); |
257 | sd->video = NULL; | ||
258 | evas_object_image_size_set(sd->obj, 0, 0); | 257 | evas_object_image_size_set(sd->obj, 0, 0); |
259 | } | 258 | } |
260 | } | 259 | } |