mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 08:11:16 +00:00
rtpsource: Incoming buffers do not always have caps
This commit is contained in:
parent
2d9bdb933d
commit
03348629ce
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);
|
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) {
|
if (stats->cycles == -1) {
|
||||||
GST_DEBUG ("received first buffer");
|
GST_DEBUG ("received first buffer");
|
||||||
|
|
Loading…
Reference in a new issue