@ffmpeg_mediaplayer : corrected problem with clear_l function. Added flag to deal with thread joins