From 8eceb8f32755f7a9522c9df836fa79504088165a Mon Sep 17 00:00:00 2001 From: Paul HENRYS Date: Tue, 29 Jan 2013 10:51:07 +0100 Subject: [PATCH] Add call to gst_rtp_h264_pay_clear_sps_pps() when receiving a STREAM_START event https://bugzilla.gnome.org/show_bug.cgi?id=692787 --- gst/rtp/gstrtph264pay.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst/rtp/gstrtph264pay.c b/gst/rtp/gstrtph264pay.c index 953379d73b..f75fd68336 100644 --- a/gst/rtp/gstrtph264pay.c +++ b/gst/rtp/gstrtph264pay.c @@ -1217,6 +1217,10 @@ gst_rtp_h264_pay_sink_event (GstRTPBasePayload * payload, GstEvent * event) gst_rtp_h264_pay_handle_buffer (payload, NULL); break; } + case GST_EVENT_STREAM_START: + GST_DEBUG_OBJECT (rtph264pay, "New stream detected => Clear SPS and PPS"); + gst_rtp_h264_pay_clear_sps_pps (rtph264pay); + break; default: break; }