Add call to gst_rtp_h264_pay_clear_sps_pps() when receiving a STREAM_START event
authorPaul HENRYS <visechelle@gmail.com>
Tue, 29 Jan 2013 09:51:07 +0000 (10:51 +0100)
committerOlivier CrĂȘte <olivier.crete@collabora.com>
Mon, 4 Nov 2013 19:36:28 +0000 (14:36 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=692787

gst/rtp/gstrtph264pay.c

index 953379d..f75fd68 100644 (file)
@@ -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;
   }