mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
decklink: Fix crash with closed-captions signal and 10-bit input
Only free the parser if there is one. If the format hadn't changed but had always been 10-bit, there might genuinely be no parser. https://bugzilla.gnome.org/show_bug.cgi?id=796030
This commit is contained in:
parent
752d2bb6e3
commit
31aafdbea5
1 changed files with 1 additions and 1 deletions
|
@ -800,7 +800,7 @@ extract_cc_from_vbi (GstDecklinkVideoSrc * self, GstBuffer ** buffer,
|
|||
return;
|
||||
}
|
||||
|
||||
if (videoformat != self->anc_vformat) {
|
||||
if (videoformat != self->anc_vformat && self->vbiparser) {
|
||||
gst_video_vbi_parser_free (self->vbiparser);
|
||||
self->vbiparser = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue