Skip to content

Commit

Permalink
transport: Set rtpbin RTP profile to SAVPF
Browse files Browse the repository at this point in the history
  • Loading branch information
sdroege authored and superdump committed Aug 7, 2015
1 parent ad2beb2 commit 49635a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion transport/owr_transport_agent.c
Expand Up @@ -65,6 +65,7 @@
#include <gst/gst.h>
#include <gst/rtp/gstrtcpbuffer.h>
#include <gst/rtp/gstrtpbuffer.h>
#include <gst/rtp/gstrtpdefs.h>
#include <gst/sctp/sctpreceivemeta.h>
#include <gst/sctp/sctpsendmeta.h>

Expand Down Expand Up @@ -1015,7 +1016,7 @@ static gboolean add_session(GHashTable *args)
if (OWR_IS_MEDIA_SESSION(session)) {
/* stream_id is used as the rtpbin session id */
g_signal_emit_by_name(priv->rtpbin, "get-internal-session", stream_id, &rtp_session);
g_object_set(rtp_session, "rtcp-min-interval", GST_SECOND, "bandwidth", 0.0, NULL);
g_object_set(rtp_session, "rtcp-min-interval", GST_SECOND, "bandwidth", 0.0, "rtp-profile", GST_RTP_PROFILE_SAVPF, NULL);
g_object_set_data(rtp_session, "session_id", GUINT_TO_POINTER(stream_id));
g_signal_connect_after(rtp_session, "on-sending-rtcp", G_CALLBACK(on_sending_rtcp), transport_agent);
g_signal_connect_after(rtp_session, "on-receiving-rtcp", G_CALLBACK(on_receiving_rtcp), NULL);
Expand Down

0 comments on commit 49635a9

Please sign in to comment.