mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
nvenc: Stop bitstream thread in ::stop()
Otherwise we are likely to crash if EOS didn't happen yet. https://bugzilla.gnome.org/show_bug.cgi?id=781410
This commit is contained in:
parent
70ac63a97c
commit
cb28314013
1 changed files with 3 additions and 0 deletions
|
@ -222,6 +222,7 @@ static void gst_nv_base_enc_get_property (GObject * object, guint prop_id,
|
|||
static void gst_nv_base_enc_finalize (GObject * obj);
|
||||
static GstCaps *gst_nv_base_enc_getcaps (GstVideoEncoder * enc,
|
||||
GstCaps * filter);
|
||||
static gboolean gst_nv_base_enc_stop_bitstream_thread (GstNvBaseEnc * nvenc);
|
||||
|
||||
static void
|
||||
gst_nv_base_enc_class_init (GstNvBaseEncClass * klass)
|
||||
|
@ -505,6 +506,8 @@ gst_nv_base_enc_stop (GstVideoEncoder * enc)
|
|||
{
|
||||
GstNvBaseEnc *nvenc = GST_NV_BASE_ENC (enc);
|
||||
|
||||
gst_nv_base_enc_stop_bitstream_thread (nvenc);
|
||||
|
||||
gst_nv_base_enc_free_buffers (nvenc);
|
||||
|
||||
if (nvenc->bitstream_pool) {
|
||||
|
|
Loading…
Reference in a new issue