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
This commit is contained in:
Göran Jönsson 2014-03-13 09:37:48 +01:00 committed by Wim Taymans
parent 3e11ce43b9
commit 80967c7638

View file

@ -1245,6 +1245,10 @@ gst_rtp_h264_pay_change_state (GstElement * element, GstStateChange transition)
rtph264pay->send_spspps = FALSE;
gst_adapter_clear (rtph264pay->adapter);
break;
case GST_STATE_CHANGE_PAUSED_TO_READY:
rtph264pay->last_spspps = -1;
gst_rtp_h264_pay_clear_sps_pps (rtph264pay);
break;
default:
break;
}