register_protocol() function Originally committed as revision 24840 to svn://svn.ffmpeg.org/ffmpeg/trunk