id3v2mux: ensure valid sentinal for gst_structure_get()
authorAndre McCurdy <armccurdy@gmail.com>
Tue, 9 Feb 2016 22:00:00 +0000 (14:00 -0800)
committerEdward Hervey <bilboed@bilboed.com>
Sat, 19 May 2018 09:26:14 +0000 (11:26 +0200)
commitf9b7e2ab85e635b04bcfa9336614a03277c1a3d0
tree700d24634bf0ac439783b376ce3146a5da24376d
parent07abf5d60fe17a3e0ebdaef0d043e8dde99df5ce
id3v2mux: ensure valid sentinal for gst_structure_get()

gst_structure_get() is declared with G_GNUC_NULL_TERMINATED, ie
__attribute__((__sentinel__)), which means gcc will generate a
warning if the last parameter passed to the function is not NULL
(where a valid NULL in this context is defined as zero with any
pointer type).

The C code callers to gst_structure_get() within gst-plugins-good
use the C NULL definition (ie ((void*)0)), which is a valid sentinel.

However gstid3v2mux.cc uses the C++ NULL definition (ie 0L), which
is not a valid sentinel without an explicit cast to a pointer type.

Upstream-Status: Pending

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
ext/taglib/gstid3v2mux.cc