mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:46:13 +00:00
rtprtxsend: Require clock-rate in the caps and handle no ssrc in the caps properly
This commit is contained in:
parent
5dba8dfe59
commit
27cf71e209
1 changed files with 3 additions and 2 deletions
|
@ -74,7 +74,7 @@ static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink",
|
static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink",
|
||||||
GST_PAD_SINK,
|
GST_PAD_SINK,
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
GST_STATIC_CAPS ("application/x-rtp")
|
GST_STATIC_CAPS ("application/x-rtp, " "clock-rate = (int) [1, MAX]")
|
||||||
);
|
);
|
||||||
|
|
||||||
static gboolean gst_rtp_rtx_send_queue_check_full (GstDataQueue * queue,
|
static gboolean gst_rtp_rtx_send_queue_check_full (GstDataQueue * queue,
|
||||||
|
@ -592,7 +592,8 @@ gst_rtp_rtx_send_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
||||||
g_assert (gst_caps_is_fixed (caps));
|
g_assert (gst_caps_is_fixed (caps));
|
||||||
|
|
||||||
s = gst_caps_get_structure (caps, 0);
|
s = gst_caps_get_structure (caps, 0);
|
||||||
gst_structure_get_uint (s, "ssrc", &ssrc);
|
if (!gst_structure_get_uint (s, "ssrc", &ssrc))
|
||||||
|
ssrc = -1;
|
||||||
|
|
||||||
GST_OBJECT_LOCK (rtx);
|
GST_OBJECT_LOCK (rtx);
|
||||||
data = gst_rtp_rtx_send_get_ssrc_data (rtx, ssrc);
|
data = gst_rtp_rtx_send_get_ssrc_data (rtx, ssrc);
|
||||||
|
|
Loading…
Reference in a new issue