nvdec: Drop async queue and handle data on callback of CUvideoparser
authorSeungha Yang <seungha.yang@navercorp.com>
Thu, 18 Jul 2019 15:52:59 +0000 (00:52 +0900)
committerSeungha Yang <seungha.yang@navercorp.com>
Fri, 19 Jul 2019 09:44:32 +0000 (18:44 +0900)
commit8018fa2526f27e55bdb7026cc76a8975b9218c4e
treef5c4ff133636c8bfaebb13ddfdacf8ec2d928ef4
parentf65c8fff5016c10e2cb4de6d73d17d02d5216ffb
nvdec: Drop async queue and handle data on callback of CUvideoparser

Callbacks of CUvideoparser is called on the streaming thread.
So the use of async queue has no benefit.

Make control flow straightforward instead of long while/switch loop.
sys/nvcodec/gstnvdec.c
sys/nvcodec/gstnvdec.h