nvdec: Fix possible null object unref
authorSeungha Yang <seungha.yang@navercorp.com>
Tue, 13 Aug 2019 01:07:38 +0000 (10:07 +0900)
committerSeungha Yang <seungha.yang@navercorp.com>
Tue, 20 Aug 2019 01:14:54 +0000 (10:14 +0900)
commit4f60117db979e36ff761663318745d80a9bafee2
tree552224f514f8786b33a51c4d175a262ad4771da0
parenteab564d857beea830fb233739ca3c77401aea408
nvdec: Fix possible null object unref

gst_query_get_n_allocation_pools > 0 does not guarantee that
the N th internal array has GstBufferPool object. So users should
check the returned GstBufferPool object from
gst_query_parse_nth_allocation_pool.
sys/nvcodec/gstnvdec.c