Bug#808385: mplayer cannot play m3u8

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Sat Dec 19 19:35:06 UTC 2015


Control: tag -1 fixed-upstream

Hi Alexander,

On 19.12.2015 20:27, Alexander Strasser wrote:
> On 2015-12-19 13:40 +0100, Andreas Cadhalpun wrote:
>> However, with mplayer the following message appears often:
>> Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
>>
>> This message always shows when mplayer "jumps", so I guess that this is the
>> actual problem here.
> 
>   Does not happen for me with current MPlayer trunk version.
> 
>   I suppose some commit(s) after 1.2 fixed it.

I suspect revision 37546:
Init network when using libavformat for streaming

This avoids the message "Using network protocols without global network
initialization. Please use avformat_network_init(), this will become
mandatory later." and makes playback of segmented streams smoother.

--- a/stream/stream_ffmpeg.c
+++ b/stream/stream_ffmpeg.c
@@ -96,6 +96,7 @@ static int open_f(stream_t *stream, int mode, void *opts, int *file_format)
     int dummy;
 
     init_avformat();
+    avformat_network_init();
     if (mode == STREAM_READ)
         flags = AVIO_FLAG_READ;
     else if (mode == STREAM_WRITE)

Best regards,
Andreas



More information about the pkg-multimedia-maintainers mailing list