rtph26*pay: Update param set timestamp even if parameters unchanged

rtph264pay and rtph265pay skip updating the parameter set timestamp if
the units they see contain no new configuration. This can result in
them injecting duplicate parameters.

https://bugzilla.gnome.org/show_bug.cgi?id=796748
This commit is contained in:
Jan Alexander Steffens (heftig) 2018-07-03 23:11:56 +02:00 committed by Sebastian Dröge
parent 0f6a4e7c98
commit 20758215b5
2 changed files with 2 additions and 2 deletions

View file

@ -716,7 +716,7 @@ gst_rtp_h264_pay_decode_nal (GstRtpH264Pay * payloader,
payloader->sps, payloader->pps, nal); payloader->sps, payloader->pps, nal);
/* remember when we last saw SPS */ /* remember when we last saw SPS */
if (updated && pts != -1) if (pts != -1)
payloader->last_spspps = payloader->last_spspps =
gst_segment_to_running_time (&GST_RTP_BASE_PAYLOAD_CAST gst_segment_to_running_time (&GST_RTP_BASE_PAYLOAD_CAST
(payloader)->segment, GST_FORMAT_TIME, pts); (payloader)->segment, GST_FORMAT_TIME, pts);

View file

@ -801,7 +801,7 @@ gst_rtp_h265_pay_decode_nal (GstRtpH265Pay * payloader,
payloader->vps, payloader->sps, payloader->pps, nal); payloader->vps, payloader->sps, payloader->pps, nal);
/* remember when we last saw VPS */ /* remember when we last saw VPS */
if (updated && pts != -1) if (pts != -1)
payloader->last_vps_sps_pps = payloader->last_vps_sps_pps =
gst_segment_to_running_time (&GST_RTP_BASE_PAYLOAD_CAST gst_segment_to_running_time (&GST_RTP_BASE_PAYLOAD_CAST
(payloader)->segment, GST_FORMAT_TIME, pts); (payloader)->segment, GST_FORMAT_TIME, pts);