src->last_keyframe_request = GST_CLOCK_TIME_NONE;
rtp_source_reset (src);
+
+ src->pt_set = FALSE;
}
void
if (!update_receiver_stats (src, pinfo, FALSE))
return GST_FLOW_OK;
+ if (src->pt_set && src->pt != pinfo->pt) {
+ GST_WARNING ("Changing pt to %u for SSRC %u", src->ssrc, pinfo->pt);
+ }
+
+ src->pt = pinfo->pt;
+ src->pt_set = TRUE;
+
/* update stats for the SR */
src->stats.packets_sent += pinfo->packets;
src->stats.octets_sent += pinfo->payload_len;
GST_DEBUG ("last_rtime %" GST_TIME_FORMAT ", last_rtptime %"
G_GUINT64_FORMAT, GST_TIME_ARGS (src->last_rtime), t_rtp);
+ if (src->clock_rate == -1 && src->pt_set) {
+ GST_INFO ("no clock-rate, getting for pt %u and SSRC %u", src->pt,
+ src->ssrc);
+ get_clock_rate (src, src->pt);
+ }
+
if (src->clock_rate != -1) {
/* get the diff between the clock running_time and the buffer running_time.
* This is the elapsed time, as measured against the pipeline clock, between