Fix stuttering with RTSP streams.
Set the rtspsrc buffer-mode to 'slave' which is the default in gstreamer 1.0 and doesn't cause the stuttering apparent with the default buffer mode. Change-Id: I4241fbe638c176ad93f441a3f76a1041ef1cb6bb Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
This commit is contained in:
committed by
Andrew den Exter
parent
eb75bf8e3b
commit
310402c6c1
@@ -1523,6 +1523,7 @@ void QGstreamerPlayerSession::playbinNotifySource(GObject *o, GParamSpec *p, gpo
|
|||||||
//rtspsrc acts like a live source and will therefore only generate data in the PLAYING state.
|
//rtspsrc acts like a live source and will therefore only generate data in the PLAYING state.
|
||||||
self->m_sourceType = RTSPSrc;
|
self->m_sourceType = RTSPSrc;
|
||||||
self->m_isLiveSource = true;
|
self->m_isLiveSource = true;
|
||||||
|
g_object_set(G_OBJECT(source), "buffer-mode", 1, NULL);
|
||||||
} else {
|
} else {
|
||||||
self->m_sourceType = UnknownSrc;
|
self->m_sourceType = UnknownSrc;
|
||||||
self->m_isLiveSource = gst_base_src_is_live(GST_BASE_SRC(source));
|
self->m_isLiveSource = gst_base_src_is_live(GST_BASE_SRC(source));
|
||||||
|
|||||||
Reference in New Issue
Block a user