qsvdecoder: Reset next_task_index per init_session()

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2206>
This commit is contained in:
Seungha Yang 2022-04-16 23:51:05 +09:00
parent b5a8bef5a7
commit a9a49c235d

View file

@ -1036,6 +1036,7 @@ gst_qsv_decoder_init_session (GstQsvDecoder * self)
gst_qsv_decoder_task_clear (task);
}
priv->next_task_index = 0;
priv->decoder = decoder_handle;