Add the NULL caps check where it matters and also cover another case of
potential NULL caps.
Fixes #590030
gint ival;
/* nothing changed, return */
- if (src->caps == caps)
+ if (caps == NULL || src->caps == caps)
return;
s = gst_caps_get_structure (caps, 0);
seqnr = gst_rtp_buffer_get_seq (buffer);
- if (GST_BUFFER_CAPS (buffer))
- rtp_source_update_caps (src, GST_BUFFER_CAPS (buffer));
+ rtp_source_update_caps (src, GST_BUFFER_CAPS (buffer));
if (stats->cycles == -1) {
GST_DEBUG ("received first buffer");