From: eojin.ham Date: Thu, 11 Jul 2013 10:52:27 +0000 (+0900) Subject: Fix the 'SelfCamera' issue. X-Git-Tag: submit/tizen_2.2/20130716.180414~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=2048797033624ab9742c4f24c3048c1ed5a31811;p=framework%2Fweb%2Fwebkit-efl.git Fix the 'SelfCamera' issue. [Title] Fix the 'SelfCamera' issue [Problem] N_SE-45035 Real video width and height is different with property value of video element in emulator. [Cause] Depends on camera device, resolution of video is different. [Solution] Set video size of emulator as different value with target. Change-Id: Iffa5cd68dcf690ee083d1cd79b2b1f572a113ce7 --- diff --git a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp index b42a302..e8a601e 100755 --- a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp +++ b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp @@ -470,7 +470,10 @@ void MediaPlayerPrivateGStreamer::load(const String& url) // Set m_videoSize as frame size which comes from webkitCameraSource. // This size is fixed. if (isLocalMediaStream()) - m_videoSize = IntSize(480, 640); + if (gst_element_factory_find("camerasrc")) + m_videoSize = IntSize(480, 640); + else + m_videoSize = IntSize(640, 480); #endif if (m_preload == MediaPlayer::None) {