At least, I've changed gen_server to gen_server2 and fixed printing of state: http://github.com/erlyvideo/erlyvideo/commit/b01d15abc3189226dbf824db19db22da35fa33a0#diff-0 Now erlyvideo doesn't hang in error_logger when stream_media dies.