avio: Only do implicit network initialization for network protocols
authorMartin Storsjö <martin@martin.st>
Fri, 30 Dec 2011 09:43:10 +0000 (11:43 +0200)
committerMartin Storsjö <martin@martin.st>
Thu, 5 Jan 2012 21:56:56 +0000 (23:56 +0200)
commitacb074301c8612dfd5f135a0513bbe93a2dc51d1
tree6b57d264caa7020dd9238dd259b13b54c26ac3a1
parent32b83aeec1a129d6eef2e89c7f107c614dfb4574
avio: Only do implicit network initialization for network protocols

The implicit network initialization is set to be removed in the
future, but is kept for compatibility. By not doing the implicit
initialization for non-network protocols, we avoid the warning
about avformat_network_init() not being called for these, where
it really doesn't make much sense.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/avio.c