rtspsrc: avoid strdup

This commit is contained in:
Wim Taymans 2013-07-02 10:37:35 +02:00
parent f01b751e52
commit 2d276e1bcb

View file

@ -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 */