audio,video: use gst_segment_is_equal instead of memcmp
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 19 Mar 2015 10:48:15 +0000 (10:48 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 3 Apr 2015 11:09:41 +0000 (12:09 +0100)
commit2954813b86fba0ee85d1aa0dd37ff95ce1858b2d
tree77a2e61a94eb4d8f902f8eb67e271c8bbbdf124f
parent964ea678dafcf4c2ad022e4c6f9948e3cec902fa
audio,video: use gst_segment_is_equal instead of memcmp

memcmp will blindly compare the reserved fields, as well as any
padding the compiler may choose to sprinkle in GstSegment.

Fixes valgrind complaints in unit tests, as well as some found via
https://bugzilla.gnome.org/show_bug.cgi?id=738216
gst-libs/gst/audio/gstaudiodecoder.c
gst-libs/gst/video/gstvideodecoder.c