Commit 80967c76 authored by Göran Jönsson's avatar Göran Jönsson Committed by Wim Taymans

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
parent 3e11ce43
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment