mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
rtspsrc: avoid strdup
This commit is contained in:
parent
f01b751e52
commit
2d276e1bcb
1 changed files with 2 additions and 3 deletions
|
@ -5458,9 +5458,8 @@ gst_rtspsrc_setup_streams (GstRTSPSrc * src, gboolean async)
|
|||
goto create_request_failed;
|
||||
}
|
||||
|
||||
/* select transport, copy is made when adding to header so we can free it. */
|
||||
gst_rtsp_message_add_header (&request, GST_RTSP_HDR_TRANSPORT, transports);
|
||||
g_free (transports);
|
||||
/* select transport */
|
||||
gst_rtsp_message_take_header (&request, GST_RTSP_HDR_TRANSPORT, transports);
|
||||
|
||||
/* if the user wants a non default RTP packet size we add the blocksize
|
||||
* parameter */
|
||||
|
|
Loading…
Reference in a new issue