static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,
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,
g_assert (gst_caps_is_fixed (caps));
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);
data = gst_rtp_rtx_send_get_ssrc_data (rtx, ssrc);