diff options
author | Ling Hu <ling.hu@nokia.com> | 2011-05-26 17:12:40 +1000 |
---|---|---|
committer | Ling Hu <ling.hu@nokia.com> | 2011-05-26 17:46:59 +1000 |
commit | 72c144b20eb4b335e6d2d5269e98db142ac0a6c6 (patch) | |
tree | 36469d27e51ba6d2fd3daa7027c2c3a809fb4fc8 | |
parent | e5c40341a6899d5639c2521bcf722931c2da119c (diff) |
Fix a crash bug in mediaplayer gstreamer backend.
Fixed the type of timeout properties passed to gstreamer elements.
Task-number: MOBILITY-2988
Change-Id: I24f1851cce99097a0bdfafedd3204bd1c15cfa33
Reviewed-by: Dmytro Poplavskiy
-rw-r--r-- | plugins/multimedia/gstreamer/mediaplayer/qgstreamerplayersession.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/multimedia/gstreamer/mediaplayer/qgstreamerplayersession.cpp b/plugins/multimedia/gstreamer/mediaplayer/qgstreamerplayersession.cpp index 62c1403a7d..f407e0e663 100644 --- a/plugins/multimedia/gstreamer/mediaplayer/qgstreamerplayersession.cpp +++ b/plugins/multimedia/gstreamer/mediaplayer/qgstreamerplayersession.cpp @@ -1435,15 +1435,15 @@ void QGstreamerPlayerSession::playbinNotifySource(GObject *o, GParamSpec *p, gpo //set timeout property to 5 seconds if (qstrcmp(G_OBJECT_CLASS_NAME(G_OBJECT_GET_CLASS(source)), "GstUDPSrc") == 0) { //udpsrc timeout unit = microsecond - g_object_set(G_OBJECT(source), "timeout", 5000000, NULL); + g_object_set(G_OBJECT(source), "timeout", G_GUINT64_CONSTANT(5000000), NULL); self->m_sourceType = UDPSrc; } else if (qstrcmp(G_OBJECT_CLASS_NAME(G_OBJECT_GET_CLASS(source)), "GstSoupHTTPSrc") == 0) { //souphttpsrc timeout unit = second - g_object_set(G_OBJECT(source), "timeout", 5, NULL); + g_object_set(G_OBJECT(source), "timeout", guint(5), NULL); self->m_sourceType = SoupHTTPSrc; } else if (qstrcmp(G_OBJECT_CLASS_NAME(G_OBJECT_GET_CLASS(source)), "GstMMSSrc") == 0) { self->m_sourceType = MMSSrc; - g_object_set(G_OBJECT(source), "tcp-timeout", 5000000, NULL); + g_object_set(G_OBJECT(source), "tcp-timeout", G_GUINT64_CONSTANT(5000000), NULL); } else { self->m_sourceType = UnknownSrc; } |