fix deadlock when thread itself goes PLAYING => PAUSED => PLAYING
fix deadlock when thread itself goes PLAYING => PAUSED => PLAYING

Original commit message from CVS:
fix deadlock when thread itself goes PLAYING => PAUSED => PLAYING

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