task: avoid task lock for each iteration
task: avoid task lock for each iteration

Make the task state an atomic variable so that we can avoid taking and releasing
the task lock for each iteration.

cfoch/gstreamer,StreamUtils/gstreamer,shelsonjava/gstreamer,lubosz/gstreamer,Lachann/gstreamer,magcius/gstreamer,shelsonjava/gstreamer,ahmedammar/platform_external_gst_gstreamer,jpxiong/gstreamer,surround-io/gstreamer,mparis/gstreamer,Lachann/gstreamer,jpakkane/gstreamer,mrchapp/gstreamer,Distrotech/gstreamer,mparis/gstreamer,magcius/gstreamer,mparis/gstreamer,ahmedammar/platform_external_gst_gstreamer,centricular/gstreamer,lovebug356/gstreamer,ensonic/gstreamer,ylatuya/gstreamer,Distrotech/gstreamer,surround-io/gstreamer,collects/gstreamer,ahmedammar/platform_external_gst_gstreamer,ensonic/gstreamer,ylatuya/gstreamer,shelsonjava/gstreamer,drothlis/gstreamer,mparis/gstreamer,ahmedammar/platform_external_gst_gstreamer,mrchapp/gstreamer,collects/gstreamer,mrchapp/gstreamer,Lachann/gstreamer,Lachann/gstreamer,jpakkane/gstreamer,surround-io/gstreamer,drothlis/gstreamer,justinjoy/gstreamer,lovebug356/gstreamer,krichter722/gstreamer,lubosz/gstreamer,drothlis/gstreamer,cfoch/gstreamer,surround-io/gstreamer,krichter722/gstreamer,Distrotech/gstreamer,cablelabs/gstreamer,centricular/gstreamer,cablelabs/gstreamer,cfoch/gstreamer,jpxiong/gstreamer,Lachann/gstreamer,jpxiong/gstreamer,lubosz/gstreamer,shelsonjava/gstreamer,krieger-od/gstreamer,mrchapp/gstreamer,cfoch/gstreamer,cablelabs/gstreamer,collects/gstreamer,ensonic/gstreamer,jpakkane/gstreamer,jpxiong/gstreamer,StreamUtils/gstreamer,ahmedammar/platform_external_gst_gstreamer,Distrotech/gstreamer,magcius/gstreamer,krieger-od/gstreamer,jpakkane/gstreamer,ylatuya/gstreamer,mrchapp/gstreamer,StreamUtils/gstreamer,justinjoy/gstreamer,StreamUtils/gstreamer,krieger-od/gstreamer,lubosz/gstreamer,magcius/gstreamer,lovebug356/gstreamer,centricular/gstreamer,justinjoy/gstreamer,StreamUtils/gstreamer,krichter722/gstreamer,centricular/gstreamer,cablelabs/gstreamer,krichter722/gstreamer,drothlis/gstreamer,ylatuya/gstreamer,lubosz/gstreamer,jpakkane/gstreamer,mparis/gstreamer,justinjoy/gstreamer,krieger-od/gstreamer,magcius/gstreamer,cfoch/gstreamer,centricular/gstreamer,krieger-od/gstreamer,ensonic/gstreamer,collects/gstreamer,justinjoy/gstreamer,surround-io/gstreamer,lovebug356/gstreamer,lovebug356/gstreamer,krichter722/gstreamer,jpxiong/gstreamer,collects/gstreamer,ensonic/gstreamer,cablelabs/gstreamer,Distrotech/gstreamer,ylatuya/gstreamer,shelsonjava/gstreamer,drothlis/gstreamer