summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2010-06-14 11:08:10 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2010-06-14 11:08:10 +0200
commit9c570dbced9e2ad381eefdc720cdb1b852065e0f (patch)
tree5cea3a21086c690a311d113ec79539436692083c /ext
parent611d87ce7ae3c143ea0e1b9a5105628f26cf2991 (diff)
gnomevfssrc: Fix possible NULL pointer dereference
It's always an error if gst_buffer_try_new_and_alloc() returns NULL
Diffstat (limited to 'ext')
-rw-r--r--ext/gnomevfs/gstgnomevfssrc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/gnomevfs/gstgnomevfssrc.c b/ext/gnomevfs/gstgnomevfssrc.c
index 83de38aa8..5b27c2ca6 100644
--- a/ext/gnomevfs/gstgnomevfssrc.c
+++ b/ext/gnomevfs/gstgnomevfssrc.c
@@ -624,7 +624,7 @@ gst_gnome_vfs_src_create (GstBaseSrc * basesrc, guint64 offset, guint size,
}
buf = gst_buffer_try_new_and_alloc (size);
- if (G_UNLIKELY (buf == NULL && size == 0)) {
+ if (G_UNLIKELY (buf == NULL)) {
GST_ERROR_OBJECT (src, "Failed to allocate %u bytes", size);
return GST_FLOW_ERROR;
}