audio/videodecoder: use gst_pad_peer_query_caps to make output caps
authorHoonHee Lee <hoonhee.lee@lge.com>
Thu, 28 Jan 2016 09:06:44 +0000 (18:06 +0900)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 28 Jan 2016 10:34:22 +0000 (11:34 +0100)
commit15df3c812b3c4d545fce4a2cfa6b74f34c1d2020
tree2366e489dabb9580ee1b6a8178cf314706aa6d55
parent135c6125507bc24ba5584c0727ba2314f09ea39d
audio/videodecoder: use gst_pad_peer_query_caps to make output caps

gst_pad_get_allowed_caps() will return NULL if the srcpad has no peer.
In that case, use gst_pad_peer_query_caps() with template caps as filter
to have negotiated output caps properly before forwarding GAP event.

https://bugzilla.gnome.org/show_bug.cgi?id=761218
gst-libs/gst/audio/gstaudiodecoder.c
gst-libs/gst/video/gstvideodecoder.c