qsvdecoder: Reset next_task_index per init_session()
authorSeungha Yang <seungha@centricular.com>
Sat, 16 Apr 2022 14:51:05 +0000 (23:51 +0900)
committerSeungha Yang <seungha@centricular.com>
Sat, 16 Apr 2022 19:15:13 +0000 (04:15 +0900)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2206>

subprojects/gst-plugins-bad/sys/qsv/gstqsvdecoder.cpp

index 9faaa6f56fec787547083b763de8712b918cf20d..73377144c621430b026941133769adc92189b423 100644 (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;