summaryrefslogtreecommitdiff
path: root/legacy/emotion/src/modules/gstreamer
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2009-11-03 16:10:03 +0000
committerVincent Torri <vincent.torri@gmail.com>2009-11-03 16:10:03 +0000
commit915bcee60e061b1b2fb4dc5a0da10dd1234ce6ed (patch)
tree0312a113dc8973a05e8212efc40a31aa7425ec5c /legacy/emotion/src/modules/gstreamer
parentbd0541a0b06e5e9e3c1d94a6e7b414b60d5893b0 (diff)
set ratio after filling the video sink
Patch by João Paulo Rechi Vita SVN revision: 43433
Diffstat (limited to 'legacy/emotion/src/modules/gstreamer')
-rw-r--r--legacy/emotion/src/modules/gstreamer/emotion_gstreamer_pipeline.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/legacy/emotion/src/modules/gstreamer/emotion_gstreamer_pipeline.c b/legacy/emotion/src/modules/gstreamer/emotion_gstreamer_pipeline.c
index 4d3632aafd..6513b91c20 100644
--- a/legacy/emotion/src/modules/gstreamer/emotion_gstreamer_pipeline.c
+++ b/legacy/emotion/src/modules/gstreamer/emotion_gstreamer_pipeline.c
@@ -501,6 +501,8 @@ emotion_streams_sinks_get(Emotion_Gstreamer_Video *ev, GstElement *decoder)
501 vlist = eina_list_next(vlist); 501 vlist = eina_list_next(vlist);
502 502
503 emotion_video_sink_fill(vsink, pad, caps); 503 emotion_video_sink_fill(vsink, pad, caps);
504 ev->ratio = (double)vsink->width / (double)vsink->height;
505
504 } 506 }
505 /* audio stream */ 507 /* audio stream */
506 else if (g_str_has_prefix(str, "audio/")) 508 else if (g_str_has_prefix(str, "audio/"))