Permalink
Browse files

WVlcPlayer: Restore the 'network caching'

  • Loading branch information...
3unjee committed Jan 5, 2019
1 parent d82e208 commit ba97f1dbb589443a04ad3015d3e13a595989ed23
Showing with 5 additions and 3 deletions.
  1. +0 −2 dist/changes/1.4.1.md
  2. +5 −1 src/SkMedia/src/vlc/WVlcPlayer.cpp
@@ -49,8 +49,6 @@

- WVlcEngine: Add the 'avcodec-fast' option.

- WVlcPlayer: Remove the 'network caching'.


## SkTorrent

@@ -28,7 +28,7 @@
//-------------------------------------------------------------------------------------------------
// Static variables

static const int VLCPLAYER_NETWORK_CACHE = 200;
static const int VLCPLAYER_NETWORK_CACHE = 300;

//-------------------------------------------------------------------------------------------------
// Private
@@ -367,6 +367,8 @@ WVlcPlayer::WVlcPlayer(WVlcEngine * engine, QThread * thread, QObject * parent)

output = d->output;

QString cache("network-caching=" + QString::number(d->networkCache));

if (d->proxyHost.isEmpty() == false)
{
proxy = "http-proxy=" + d->proxyHost;
@@ -410,6 +412,8 @@ WVlcPlayer::WVlcPlayer(WVlcEngine * engine, QThread * thread, QObject * parent)
else libvlc_media_add_option(media, "no-audio");
}

libvlc_media_add_option(media, cache.C_STR);

if (proxy.isNull() == false)
{
libvlc_media_add_option(media, proxy .C_STR);

0 comments on commit ba97f1d

Please sign in to comment.