summaryrefslogtreecommitdiffstats
path: root/gst/rtpmanager
diff options
context:
space:
mode:
authorOlivier Crête <olivier.crete@collabora.co.uk>2009-07-28 11:59:56 -0400
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2009-08-11 02:30:47 +0100
commite37844fdc7753fd41089f16c0b4cdc88f182bf68 (patch)
tree3f03319b89999c49ae29bace14a653b43dc17bd3 /gst/rtpmanager
parent309113721796480c3cd9995d7d768cc6182c9f84 (diff)
rtpsource: Incoming buffers do not always have caps
Diffstat (limited to 'gst/rtpmanager')
-rw-r--r--gst/rtpmanager/rtpsource.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/rtpmanager/rtpsource.c b/gst/rtpmanager/rtpsource.c
index 40cdd238..77d56c22 100644
--- a/gst/rtpmanager/rtpsource.c
+++ b/gst/rtpmanager/rtpsource.c
@@ -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");