libs: encoder: Add NULL pointer check for context when finalize.
authorHe Junyan <junyan.he@hotmail.com>
Sun, 22 Dec 2019 07:22:57 +0000 (15:22 +0800)
committerHe Junyan <junyan.he@hotmail.com>
Sun, 22 Dec 2019 07:22:57 +0000 (15:22 +0800)
commit5ad67ea666c96ecd01212caa39ad0b1432e6d726
tree8d23c0f5ee03e31c46efea4b9c36f79941ad4ffc
parent18d1c75d1a98123549bb994113df2614655c558b
libs: encoder: Add NULL pointer check for context when finalize.

Context may be NULL if pipeline fail in early stage, and the
ensure_context will not be called. Need to add a pointer protection
for it.
gst-libs/gst/vaapi/gstvaapiencoder.c