mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
dont use avformat_find_stream_info, if noprobe is requested
Origin commit data
------------------
Branch: master
Commit: c90e05a8f0
Author: TangoCash <eric@loxat.de>
Date: 2022-09-06 (Tue, 06 Sep 2022)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -124,7 +124,7 @@ bool cPlayback::Start(char *filename, int vpid, int vtype, int apid, int ac3, in
|
|||||||
file = "file://";
|
file = "file://";
|
||||||
file += filename;
|
file += filename;
|
||||||
|
|
||||||
if ((file.find(":31339/id=") != std::string::npos) || (file.find(":10000") != std::string::npos) || (file.find(":8001/") != std::string::npos)) // for LocalTV and Entertain-TV streaming
|
if ((file.find(":31339/id=") != std::string::npos) || (file.find(":17999/1:") != std::string::npos) || (file.find(":10000") != std::string::npos) || (file.find(":8001/") != std::string::npos)) // for LocalTV and Entertain-TV streaming
|
||||||
no_probe = true;
|
no_probe = true;
|
||||||
|
|
||||||
if (file.substr(0, 7) == "file://")
|
if (file.substr(0, 7) == "file://")
|
||||||
|
@@ -1845,13 +1845,15 @@ int32_t container_ffmpeg_init_av_context(Context_t *context, char *filename, uin
|
|||||||
wrapped_set_max_analyze_duration(avContextTab[AVIdx], 1);
|
wrapped_set_max_analyze_duration(avContextTab[AVIdx], 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
ffmpeg_printf(20, "find_streaminfo\n");
|
if (!context->playback->noprobe)
|
||||||
|
|
||||||
if (avformat_find_stream_info(avContextTab[AVIdx], NULL) < 0)
|
|
||||||
{
|
{
|
||||||
ffmpeg_err("Error avformat_find_stream_info\n");
|
ffmpeg_printf(20, "find_streaminfo\n");
|
||||||
}
|
|
||||||
|
|
||||||
|
if (avformat_find_stream_info(avContextTab[AVIdx], NULL) < 0)
|
||||||
|
{
|
||||||
|
ffmpeg_err("Error avformat_find_stream_info\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
//for buffered io
|
//for buffered io
|
||||||
if (avContextTab[AVIdx] != NULL && avContextTab[AVIdx]->pb != NULL && !context->playback->isTSLiveMode)
|
if (avContextTab[AVIdx] != NULL && avContextTab[AVIdx]->pb != NULL && !context->playback->isTSLiveMode)
|
||||||
{
|
{
|
||||||
|
@@ -200,7 +200,7 @@ static int PlaybackOpen(Context_t *context, PlayFiles_t *pFiles)
|
|||||||
context->playback->uri = tUri;
|
context->playback->uri = tUri;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strstr(uri, ":10000") || strstr(uri, ":31339/id="))
|
if (strstr(uri, ":10000") || strstr(uri, ":31339/id=") || strstr(uri, ":17999/1:") || strstr(uri, ":8001/"))
|
||||||
{
|
{
|
||||||
context->playback->noprobe = 1;
|
context->playback->noprobe = 1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user