mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
rtsp-client: suspend media during setup request
SETUP request from clients needs to suspend the media to clear the prerolled buffers. Otherwise it will not affect the prerolled buffer and the prerolled buffers will be incorrect (for example block-size from setup request will not affect the prerolled buffer unless the media is suspended). https://bugzilla.gnome.org/show_bug.cgi?id=758268
This commit is contained in:
parent
82dffd17b3
commit
ed70572c6c
1 changed files with 3 additions and 0 deletions
|
@ -1823,6 +1823,9 @@ handle_setup_request (GstRTSPClient * client, GstRTSPContext * ctx)
|
|||
if (sessmedia == NULL) {
|
||||
/* get a handle to the configuration of the media in the session */
|
||||
media = find_media (client, ctx, path, &matched);
|
||||
/* need to suspend the media, if the protocol has changed */
|
||||
if (media != NULL)
|
||||
gst_rtsp_media_suspend (media);
|
||||
} else {
|
||||
if ((media = gst_rtsp_session_media_get_media (sessmedia)))
|
||||
g_object_ref (media);
|
||||
|
|
Loading…
Reference in a new issue