libeplayer3: work around duplicate ffmpeg stream ids by comparing stream addresses instead of pids (plus a couple of optimizations)

This commit is contained in:
martii
2014-04-10 23:35:38 +02:00
parent 98666dd735
commit 908ff30629
6 changed files with 83 additions and 128 deletions

View File

@@ -72,10 +72,7 @@ bool Player::Open(const char *Url, bool _noprobe)
manager.clearTracks();
if (*Url == '/') {
url = "file://";
url += Url;
} else if (!strncmp("mms://", Url, 6)) {
if (!strncmp("mms://", Url, 6)) {
url = "mmst";
url += Url + 3;
isHttp = true;
@@ -207,7 +204,6 @@ bool Player::Stop()
bool ret = true;
if (isPlaying) {
isPaused = false;
isPlaying = false;
isForwarding = false;