h265parse: Don't segfault when SPS hasn't been seen yet.
authorJan Schmidt <jan@centricular.com>
Wed, 3 Jul 2019 15:12:06 +0000 (01:12 +1000)
committerJan Schmidt <jan@centricular.com>
Wed, 3 Jul 2019 15:12:06 +0000 (01:12 +1000)
commitbd46630b62d4b3c547e0abf768c2b2681c999264
treed5730bdba800110d9890c3d14fb977231969a170
parent9a39ba6a359bfeec9549d30a16d5352a659c9a87
h265parse: Don't segfault when SPS hasn't been seen yet.

Fix a recently introduced segfault. Don't de-reference a NULL
SPS pointer when attempting to update source caps before SPS
has been seen in the stream.
gst/videoparsers/gsth265parse.c