mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-28 16:01:22 +02:00
libeplayer3: add hack to decrease libavcodec probe size
almost disable the libavcodec format probing when using "myts://" instead of "file://" urls to improve startup speed for timeshift etc
This commit is contained in:
@@ -167,11 +167,17 @@ static int PlaybackOpen(Context_t *context, char * uri) {
|
||||
context->playback->uri = strdup(uri);
|
||||
|
||||
if (!context->playback->isPlaying) {
|
||||
if (!strncmp("file://", uri, 7)) {
|
||||
if (!strncmp("file://", uri, 7) || !strncmp("myts://", uri, 7)) {
|
||||
char * extension = NULL;
|
||||
context->playback->isFile = 1;
|
||||
context->playback->isHttp = 0;
|
||||
context->playback->isUPNP = 0;
|
||||
if (!strncmp("myts://", uri, 7)) {
|
||||
memcpy(context->playback->uri, "file", 4);
|
||||
memcpy(uri, "file", 4);
|
||||
context->playback->noprobe = 1;
|
||||
} else
|
||||
context->playback->noprobe = 0;
|
||||
|
||||
getExtension(uri+7, &extension);
|
||||
|
||||
@@ -1059,4 +1065,5 @@ PlaybackHandler_t PlaybackHandler = {
|
||||
&Command,
|
||||
"",
|
||||
0,
|
||||
0
|
||||
};
|
||||
|
Reference in New Issue
Block a user