These values need to be reset as soon as a new file is set, otherwise
they can give wrong information to evas about the size of pixels to
render.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/emotion@63205
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
_file_open(Emotion_Generic_Video *ev)
{
INF("Opening file: %s", ev->filename);
- ev->w = DEFAULTWIDTH;
- ev->h = DEFAULTHEIGHT;
- ev->ratio = (double)DEFAULTWIDTH / DEFAULTHEIGHT;
- ev->speed = 1.0;
- ev->len = 0;
ev->drop = 0;
if (!ev->ready)
eina_stringshare_replace(&ev->filename, file);
ev->pos = 0;
+ ev->w = 0;
+ ev->h = 0;
+ ev->ratio = 1;
+ ev->speed = 1.0;
+ ev->len = 0;
if (ev->ready && ev->opening)
{