Skip to content
Snippets Groups Projects

plugins: encode: fix a deadlock because of _drain()

Merged He Junyan requested to merge He_Junyan/gstreamer-vaapi:fix_dead_lock_encode into master

We call gst_vaapiencode_drain() in gst_vaapiencode_change_state(), whose context does not hold the stream lock of the encoder. The current gst_vaapiencode_drain inside unlock/lock pair adds a extra lock count to the stream lock of encoder and causes hang later.

Merge request reports

Merge request pipeline #351408 passed

Merge request pipeline passed for 677d1e01

Merged by GStreamer Marge BotGStreamer Marge Bot 3 years ago (Jul 1, 2021 2:29pm UTC)

Loading

Pipeline #351505 waiting for manual action

Pipeline waiting for manual action for 677d1e01 on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading