DGIndex: Remove unused code
DGIndex: Set the values to properly control flags.
DGIndex: Fix the crash by invalid access

This is a correction for the following commit.
Git HASH: a8f24f554937c8b5e22c149e4254e5455d434e9e
DGindex: Fix the crash by invalid access

Add the stop processing of the decode thread.