forked from enlightenment/efl
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
This commit is contained in:
parent
86ffe2e502
commit
ac834a2726
|
@ -254,7 +254,6 @@ emotion_object_file_set(Evas_Object *obj, const char *file)
|
|||
if (sd->video && sd->module)
|
||||
{
|
||||
sd->module->file_close(sd->video);
|
||||
sd->video = NULL;
|
||||
evas_object_image_size_set(sd->obj, 0, 0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue