use gtk frame for border and some refactoring
fix freeze and wrong decoding when bit rate isn't 16 bps