mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 15:02:58 +02:00
libeplayer3: enable streams that use http auth
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user