set ratio after filling the video sink

Patch by João Paulo Rechi Vita


SVN revision: 43433
This commit is contained in:
Vincent Torri 2009-11-03 16:10:03 +00:00
parent bd0541a0b0
commit 915bcee60e
1 changed files with 2 additions and 0 deletions

View File

@ -501,6 +501,8 @@ emotion_streams_sinks_get(Emotion_Gstreamer_Video *ev, GstElement *decoder)
vlist = eina_list_next(vlist);
emotion_video_sink_fill(vsink, pad, caps);
ev->ratio = (double)vsink->width / (double)vsink->height;
}
/* audio stream */
else if (g_str_has_prefix(str, "audio/"))