memory/buffer: Initialise GstMapInfo to zeroes if mapping fails
authorSebastian Dröge <sebastian@centricular.com>
Wed, 16 Apr 2014 17:49:56 +0000 (19:49 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 16 Apr 2014 17:49:56 +0000 (19:49 +0200)
commit81f9a22228e5158b89e4aded38b4966a7b784b8b
treea9946d5ac16269146b0fab048e0dd2c80c82b963
parentdded0a4bb6b686125efd9fdc92150e711e1c8082
memory/buffer: Initialise GstMapInfo to zeroes if mapping fails

This should allow for more meaningful errors. Dereferencing NULL
is more useful information than dereferencing a random address
happened to be on the stack.
gst/gstbuffer.c
gst/gstmemory.c