libeplayer3: limit video frame skipping to network streams

This commit is contained in:
martii
2014-05-02 15:05:47 +02:00
parent b0a734c607
commit 263f211cbe
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;