Commit b5ac100f authored by Francois Cartegnie's avatar Francois Cartegnie

demux: dash: no longer use stream_UrlNew for updates

parent adcd90a0
......@@ -39,6 +39,7 @@
#include "xml/DOMParser.h"
#include "../adaptative/logic/RateBasedAdaptationLogic.h"
#include <vlc_stream.h>
#include "../adaptative/tools/Retrieve.hpp"
#include <algorithm>
#include <ctime>
......@@ -73,9 +74,17 @@ bool DASHManager::updatePlaylist()
url.append("://");
url.append(stream->psz_path);
stream_t *mpdstream = stream_UrlNew(stream, url.c_str());
uint8_t *p_data = NULL;
size_t i_data = Retrieve::HTTP(VLC_OBJECT(stream), url, (void**) &p_data);
if(!p_data)
return false;
stream_t *mpdstream = stream_MemoryNew(stream, p_data, i_data, false);
if(!mpdstream)
{
free(p_data);
return false;
}
xml::DOMParser parser(mpdstream);
if(!parser.parse())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment