libeplayer3: limit video frame skipping to network streams

Origin commit data
------------------
Branch: master
Commit: d2de1050ba
Author: martii <m4rtii@gmx.de>
Date: 2014-05-02 (Fri, 02 May 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2014-05-02 15:05:47 +02:00
parent d92f342f2a
commit cbd7a36bc4
2 changed files with 4 additions and 1 deletions

View File

@@ -88,7 +88,9 @@ bool Input::Play()
int warnAudioWrite = 0;
int warnVideoWrite = 0;
bool audioSeen = !audioTrack; // HACK: Drop all video frames until the first audio frame was seen to keep player2 from stuttering.
// HACK: Drop all video frames until the first audio frame was seen to keep player2 from stuttering.
// This seems to be necessary for network streaming only ...
bool audioSeen = !audioTrack || !player->isHttp;
while (player->isPlaying && !player->abortRequested) {

View File

@@ -78,6 +78,7 @@ bool Player::Open(const char *Url, bool _noprobe)
isHttp = true;
} else if (strstr(Url, "://")) {
url = Url;
isHttp = strncmp("file://", Url, 7);
} else {
fprintf(stderr, "%s %s %d: Unknown stream (%s)\n", __FILE__, __func__, __LINE__, Url);
return false;