libspark/player, libeplayer3/ffmpeg: improve termination handling

Conflicts:
	libspark/playback_libeplayer3.h