mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
rtspsrc: don't clear sdp when set as uri
when we set the SDP with an uri, don't clear it when we go to READY.
This commit is contained in:
parent
7698d8bc4a
commit
8f2d254e24
1 changed files with 7 additions and 1 deletions
|
@ -521,6 +521,11 @@ gst_rtspsrc_finalize (GObject * object)
|
||||||
g_free (rtspsrc->user_id);
|
g_free (rtspsrc->user_id);
|
||||||
g_free (rtspsrc->user_pw);
|
g_free (rtspsrc->user_pw);
|
||||||
|
|
||||||
|
if (rtspsrc->sdp) {
|
||||||
|
gst_sdp_message_free (rtspsrc->sdp);
|
||||||
|
rtspsrc->sdp = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
/* free locks */
|
/* free locks */
|
||||||
g_static_rec_mutex_free (rtspsrc->stream_rec_lock);
|
g_static_rec_mutex_free (rtspsrc->stream_rec_lock);
|
||||||
g_free (rtspsrc->stream_rec_lock);
|
g_free (rtspsrc->stream_rec_lock);
|
||||||
|
@ -1146,7 +1151,8 @@ gst_rtspsrc_cleanup (GstRTSPSrc * src)
|
||||||
gst_rtsp_range_free (src->range);
|
gst_rtsp_range_free (src->range);
|
||||||
src->range = NULL;
|
src->range = NULL;
|
||||||
|
|
||||||
if (src->sdp) {
|
/* don't clear the SDP when it was used in the url */
|
||||||
|
if (src->sdp && !src->from_sdp) {
|
||||||
gst_sdp_message_free (src->sdp);
|
gst_sdp_message_free (src->sdp);
|
||||||
src->sdp = NULL;
|
src->sdp = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue