diff options
author | Olivier CrĂȘte <olivier.crete@collabora.co.uk> | 2009-07-28 11:59:56 -0400 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-07-28 18:16:12 +0200 |
commit | 03348629cea29e878c9acd2f5aa344fa71b009b0 (patch) | |
tree | 1e6e6297088d0186e2cfc118c96c246241dab799 /gst | |
parent | 2d9bdb933d40c0f32dd353b792ac0e70374e5192 (diff) | |
download | gst-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.c | 3 |
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"); |