rtph264pay: only update last_spspps time if all sps/pps got sent successfully
authorGöran Jönsson <goranjn@axis.com>
Tue, 11 Feb 2014 11:41:29 +0000 (12:41 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 25 Feb 2014 10:48:24 +0000 (10:48 +0000)
commit53ffd9e1cab086f334f94597973fdb0fcb175adc
tree1da45a4a423a1947ee705d8eb52731eca07e9e1d
parentb9a953161f23888c04b9c046259202bbbe443466
rtph264pay: only update last_spspps time if all sps/pps got sent successfully

This fixes an issue with gst-rtsp-server where no sps and pps are
sent for the first intra frame, because the payloader starts working
already when receiving DESCRIBE but there is no transports so it tries
to send sps and pps, but that fails with a FLUSHING flow. But the time
for last sent sps and pps would still be set, so when PLAY arrives and
the first intra frame is to be sent there is no sps and pps sent due to
that time since last sps pps is less than spspps_interval.

https://bugzilla.gnome.org/show_bug.cgi?id=724213
gst/rtp/gstrtph264pay.c