mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 21:51:09 +00:00
rtpsource: allow for NULL caps on buffers
Add the NULL caps check where it matters and also cover another case of potential NULL caps. Fixes #590030
This commit is contained in:
parent
e37844fdc7
commit
9f68303a2e
1 changed files with 2 additions and 3 deletions
|
@ -628,7 +628,7 @@ rtp_source_update_caps (RTPSource * src, GstCaps * caps)
|
||||||
gint ival;
|
gint ival;
|
||||||
|
|
||||||
/* nothing changed, return */
|
/* nothing changed, return */
|
||||||
if (src->caps == caps)
|
if (caps == NULL || src->caps == caps)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
s = gst_caps_get_structure (caps, 0);
|
s = gst_caps_get_structure (caps, 0);
|
||||||
|
@ -981,7 +981,6 @@ rtp_source_process_rtp (RTPSource * src, GstBuffer * buffer,
|
||||||
|
|
||||||
seqnr = gst_rtp_buffer_get_seq (buffer);
|
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) {
|
if (stats->cycles == -1) {
|
||||||
|
|
Loading…
Reference in a new issue