Gst player backend: increased network timeout.
5 seconds timeout is to short, increased to 30 seconds. Task-number: MOBILITY-3013 Reviewed-by: Michael Goddard (cherry picked from commit cf230f948de63c7755c7759b3e14a02ad14cb185) Change-Id: I41d62ac1ed15f2c09af6fd804723096996d16139 Reviewed-on: http://codereview.qt.nokia.com/974 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Michael Goddard
This commit is contained in:
committed by
Qt by Nokia
parent
843f47fc59
commit
e94afd6cf2
@@ -1417,18 +1417,19 @@ void QGstreamerPlayerSession::playbinNotifySource(GObject *o, GParamSpec *p, gpo
|
|||||||
gst_structure_free(extras);
|
gst_structure_free(extras);
|
||||||
}
|
}
|
||||||
|
|
||||||
//set timeout property to 5 seconds
|
//set timeout property to 30 seconds
|
||||||
|
const int timeout = 30;
|
||||||
if (qstrcmp(G_OBJECT_CLASS_NAME(G_OBJECT_GET_CLASS(source)), "GstUDPSrc") == 0) {
|
if (qstrcmp(G_OBJECT_CLASS_NAME(G_OBJECT_GET_CLASS(source)), "GstUDPSrc") == 0) {
|
||||||
//udpsrc timeout unit = microsecond
|
//udpsrc timeout unit = microsecond
|
||||||
g_object_set(G_OBJECT(source), "timeout", G_GUINT64_CONSTANT(5000000), NULL);
|
g_object_set(G_OBJECT(source), "timeout", G_GUINT64_CONSTANT(timeout*1000000), NULL);
|
||||||
self->m_sourceType = UDPSrc;
|
self->m_sourceType = UDPSrc;
|
||||||
} else if (qstrcmp(G_OBJECT_CLASS_NAME(G_OBJECT_GET_CLASS(source)), "GstSoupHTTPSrc") == 0) {
|
} else if (qstrcmp(G_OBJECT_CLASS_NAME(G_OBJECT_GET_CLASS(source)), "GstSoupHTTPSrc") == 0) {
|
||||||
//souphttpsrc timeout unit = second
|
//souphttpsrc timeout unit = second
|
||||||
g_object_set(G_OBJECT(source), "timeout", guint(5), NULL);
|
g_object_set(G_OBJECT(source), "timeout", guint(timeout), NULL);
|
||||||
self->m_sourceType = SoupHTTPSrc;
|
self->m_sourceType = SoupHTTPSrc;
|
||||||
} else if (qstrcmp(G_OBJECT_CLASS_NAME(G_OBJECT_GET_CLASS(source)), "GstMMSSrc") == 0) {
|
} else if (qstrcmp(G_OBJECT_CLASS_NAME(G_OBJECT_GET_CLASS(source)), "GstMMSSrc") == 0) {
|
||||||
self->m_sourceType = MMSSrc;
|
self->m_sourceType = MMSSrc;
|
||||||
g_object_set(G_OBJECT(source), "tcp-timeout", G_GUINT64_CONSTANT(5000000), NULL);
|
g_object_set(G_OBJECT(source), "tcp-timeout", G_GUINT64_CONSTANT(timeout*1000000), NULL);
|
||||||
} else {
|
} else {
|
||||||
self->m_sourceType = UnknownSrc;
|
self->m_sourceType = UnknownSrc;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user