libeplayer3: enable streams that use http auth

This commit is contained in:
Stefan Seyfried
2016-01-09 15:43:30 +01:00
parent be9ebb472a
commit 42267080f9

View File

@@ -459,7 +459,10 @@ bool Input::Init(const char *filename)
avfc->interrupt_callback.callback = interrupt_cb; avfc->interrupt_callback.callback = interrupt_cb;
avfc->interrupt_callback.opaque = (void *) player; avfc->interrupt_callback.opaque = (void *) player;
int err = avformat_open_input(&avfc, filename, NULL, 0); AVDictionary *options = NULL;
av_dict_set(&options, "auth_type", "basic", 0);
int err = avformat_open_input(&avfc, filename, NULL, &options);
av_dict_free(&options);
if (averror(err, avformat_open_input)) { if (averror(err, avformat_open_input)) {
avformat_free_context(avfc); avformat_free_context(avfc);
return false; return false;