rtpsource: Incoming buffers do not always have caps

This commit is contained in:
Olivier Crête 2009-07-28 11:59:56 -04:00 committed by Tim-Philipp Müller
parent 3091137217
commit e37844fdc7

View file

@ -981,7 +981,8 @@ rtp_source_process_rtp (RTPSource * src, GstBuffer * buffer,
seqnr = gst_rtp_buffer_get_seq (buffer);
rtp_source_update_caps (src, GST_BUFFER_CAPS (buffer));
if (GST_BUFFER_CAPS (buffer))
rtp_source_update_caps (src, GST_BUFFER_CAPS (buffer));
if (stats->cycles == -1) {
GST_DEBUG ("received first buffer");