--- a/qtmobility/plugins/multimedia/gstreamer/qgstreamervideowidget.cpp Fri Apr 16 15:51:22 2010 +0300
+++ b/qtmobility/plugins/multimedia/gstreamer/qgstreamervideowidget.cpp Mon May 03 13:18:40 2010 +0300
@@ -112,6 +112,11 @@
gst_element_set_state(m_videoSink, GST_STATE_NULL);
g_object_set(G_OBJECT(m_videoSink), "force-aspect-ratio", 1, (const char*)NULL);
+#ifdef Q_WS_MAEMO_5
+ //the overlay xvideo adapter fails to switch winId,
+ //use "SGX Textured Video" adapter instead
+ g_object_set(G_OBJECT(m_videoSink), "device", "1", NULL);
+#endif
}
}
@@ -120,6 +125,8 @@
gst_object_ref (GST_OBJECT (m_videoSink)); //Take ownership
gst_object_sink (GST_OBJECT (m_videoSink));
+
+
}
QGstreamerVideoWidgetControl::~QGstreamerVideoWidgetControl()
@@ -218,17 +225,17 @@
return m_widget;
}
-QVideoWidget::AspectRatioMode QGstreamerVideoWidgetControl::aspectRatioMode() const
+Qt::AspectRatioMode QGstreamerVideoWidgetControl::aspectRatioMode() const
{
return m_aspectRatioMode;
}
-void QGstreamerVideoWidgetControl::setAspectRatioMode(QVideoWidget::AspectRatioMode mode)
+void QGstreamerVideoWidgetControl::setAspectRatioMode(Qt::AspectRatioMode mode)
{
if (m_videoSink) {
g_object_set(G_OBJECT(m_videoSink),
"force-aspect-ratio",
- (mode == QVideoWidget::KeepAspectRatio),
+ (mode == Qt::KeepAspectRatio),
(const char*)NULL);
}