mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
rtpsource: Incoming buffers do not always have caps
This commit is contained in:
parent
3091137217
commit
e37844fdc7
1 changed files with 2 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue