Skip to content

msdk: make sure child context is destroyed first

Haihao Xiang requested to merge haihao/gst-plugins-bad:msdk-fix-segfault into master

The parent context shares some resources with child context, so the child context should be destroyed first, otherwise the command below will trigger a segmentation fault

$> gst-launch-1.0 videotestsrc num-buffers=100 ! msdkh264enc !
msdkh264dec ! fakesink videotestsrc num-buffers=50 !
msdkh264enc ! msdkh264dec ! fakesink

Merge request reports

Loading