summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.co.uk>2009-07-28 11:59:56 -0400
committerWim Taymans <wim.taymans@collabora.co.uk>2009-07-28 18:16:12 +0200
commit03348629cea29e878c9acd2f5aa344fa71b009b0 (patch)
tree1e6e6297088d0186e2cfc118c96c246241dab799 /gst
parent2d9bdb933d40c0f32dd353b792ac0e70374e5192 (diff)
downloadgst-plugins-bad-03348629cea29e878c9acd2f5aa344fa71b009b0.tar.gz
gst-plugins-bad-03348629cea29e878c9acd2f5aa344fa71b009b0.tar.bz2
gst-plugins-bad-03348629cea29e878c9acd2f5aa344fa71b009b0.zip
rtpsource: Incoming buffers do not always have caps
Diffstat (limited to 'gst')
-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");