mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 10:55:34 +00:00
client: use method to access property
This commit is contained in:
parent
0e9ce1caf3
commit
6fa73b2552
1 changed files with 3 additions and 1 deletions
|
@ -1070,6 +1070,7 @@ create_sdp (GstRTSPClient * client, GstRTSPMedia * media)
|
||||||
GstSDPMessage *sdp;
|
GstSDPMessage *sdp;
|
||||||
GstSDPInfo info;
|
GstSDPInfo info;
|
||||||
const gchar *proto;
|
const gchar *proto;
|
||||||
|
GstRTSPLowerTrans protocols;
|
||||||
|
|
||||||
gst_sdp_message_new (&sdp);
|
gst_sdp_message_new (&sdp);
|
||||||
|
|
||||||
|
@ -1092,7 +1093,8 @@ create_sdp (GstRTSPClient * client, GstRTSPMedia * media)
|
||||||
gst_sdp_message_add_attribute (sdp, "control", "*");
|
gst_sdp_message_add_attribute (sdp, "control", "*");
|
||||||
|
|
||||||
info.server_proto = proto;
|
info.server_proto = proto;
|
||||||
if (media->protocols & GST_RTSP_LOWER_TRANS_UDP_MCAST)
|
protocols = gst_rtsp_media_get_protocols (media);
|
||||||
|
if (protocols & GST_RTSP_LOWER_TRANS_UDP_MCAST)
|
||||||
info.server_ip = gst_rtsp_media_get_multicast_group (media);
|
info.server_ip = gst_rtsp_media_get_multicast_group (media);
|
||||||
else
|
else
|
||||||
info.server_ip = g_strdup (client->server_ip);
|
info.server_ip = g_strdup (client->server_ip);
|
||||||
|
|
Loading…
Reference in a new issue