mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
3e11ce43b9
commit
80967c7638
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue