Fix the 'SelfCamera' issue.
authoreojin.ham <eojin.ham@samsung.com>
Thu, 11 Jul 2013 10:52:27 +0000 (19:52 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Fri, 12 Jul 2013 04:48:03 +0000 (04:48 +0000)
[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

Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp

index b42a302..e8a601e 100755 (executable)
@@ -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) {