mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 07:38:16 +00:00
rtspsrc: Set RTP profile on the rtpsession objects
https://bugzilla.gnome.org/show_bug.cgi?id=746543
This commit is contained in:
parent
506a8a8857
commit
0a7823b30f
1 changed files with 21 additions and 1 deletions
|
@ -90,7 +90,7 @@
|
|||
#include <gst/net/gstnet.h>
|
||||
#include <gst/sdp/gstsdpmessage.h>
|
||||
#include <gst/sdp/gstmikey.h>
|
||||
#include <gst/rtp/gstrtppayloads.h>
|
||||
#include <gst/rtp/rtp.h>
|
||||
|
||||
#include "gst/gst-i18n-plugin.h"
|
||||
|
||||
|
@ -3401,6 +3401,8 @@ gst_rtspsrc_stream_configure_manager (GstRTSPSrc * src, GstRTSPStream * stream,
|
|||
g_signal_emit_by_name (src->manager, "get-internal-session", stream->id,
|
||||
&rtpsession);
|
||||
if (rtpsession) {
|
||||
GstRTPProfile rtp_profile;
|
||||
|
||||
GST_INFO_OBJECT (src, "configure bandwidth in session %p", rtpsession);
|
||||
|
||||
stream->session = rtpsession;
|
||||
|
@ -3422,6 +3424,24 @@ gst_rtspsrc_stream_configure_manager (GstRTSPSrc * src, GstRTSPStream * stream,
|
|||
NULL);
|
||||
}
|
||||
|
||||
switch (stream->profile) {
|
||||
case GST_RTSP_PROFILE_AVPF:
|
||||
rtp_profile = GST_RTP_PROFILE_AVPF;
|
||||
break;
|
||||
case GST_RTSP_PROFILE_SAVP:
|
||||
rtp_profile = GST_RTP_PROFILE_SAVP;
|
||||
break;
|
||||
case GST_RTSP_PROFILE_SAVPF:
|
||||
rtp_profile = GST_RTP_PROFILE_SAVPF;
|
||||
break;
|
||||
case GST_RTSP_PROFILE_AVP:
|
||||
default:
|
||||
rtp_profile = GST_RTP_PROFILE_AVP;
|
||||
break;
|
||||
}
|
||||
|
||||
g_object_set (rtpsession, "rtp-profile", rtp_profile, NULL);
|
||||
|
||||
g_object_set (rtpsession, "probation", src->probation, NULL);
|
||||
|
||||
g_object_set (rtpsession, "internal-ssrc", stream->send_ssrc, NULL);
|
||||
|
|
Loading…
Reference in a new issue