GNOME Bugzilla – Bug 726015
rtph264pay: Reset last_spspps to orgin value when NULL state
Last modified: 2014-04-21 10:11:19 UTC
Created attachment 271397 [details] [review] patch In file gstrtp264pay,c reset value last_spspps when state transition to NULL. Attach patch·
Review of attachment 271397 [details] [review]: ::: gst/rtp/gstrtph264pay.c @@ +1247,3 @@ break; + case GST_STATE_CHANGE_READY_TO_NULL: + rtph264pay->last_spspps = -1; This should be done in PAUSED_TO_READY already. Also there are a few other fields that should be reset, e.g. the sps/pps arrays
Thanks for the patch, looks like there's more that needs to be reset in rtph264pay though :)
Created attachment 271690 [details] [review] patch
fixed review comments attach new patch resetspspps2.patch
commit 80967c76381ec9abcd3b98cf9c0cf022953ad74e Author: Göran Jönsson <goranjn@axis.com> Date: Thu Mar 13 09:37:48 2014 +0100 gstrtph264pay: Reset sps pps variable when state change. Reset last_spspps and sps/pps arrays when state transition GST_STATE_CHANGE_PAUSED_TO_READY. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=726015