nvdec: Skip draining before creating internal parser
authorSeungha Yang <seungha.yang@navercorp.com>
Wed, 24 Jul 2019 11:38:58 +0000 (20:38 +0900)
committerSebastian Dröge <slomo@coaxion.net>
Thu, 25 Jul 2019 07:11:04 +0000 (07:11 +0000)
commitc8640e23f4cec14faa0fe3093d2d98f0bfced612
tree73851cc5e4b7e64fbf8b286fbf4e9671f1060110
parent71d9e330854312658f9a4b0bfb6d94269b686974
nvdec: Skip draining before creating internal parser

GstVideoDecoder::drain/flush can be called at very initial state
with stream-start and flush-stop event, respectively.
Draning with NULL CUvideoparser seems to unsafe and that eventually
failed to handle it.
sys/nvcodec/gstnvdec.c