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 Wim Taymans
parent 2d9bdb933d
commit 03348629ce

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");