mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
libeplayer3: limit video frame skipping to network streams
This commit is contained in:
@@ -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) {
|
||||
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user