mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-27 15:32:43 +02:00
Add buffering for SH4
Signed-off-by: max_10 <max_10@gmx.de>
Origin commit data
------------------
Branch: master
Commit: a7da1fd3bf
Author: samsamsam <samsamsam@o2.pl>
Date: 2018-04-14 (Sat, 14 Apr 2018)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -585,10 +585,16 @@ static void FFMPEGThread(Context_t *context)
|
||||
ffmpeg_printf(10, "\n");
|
||||
while (context->playback->isCreationPhase)
|
||||
{
|
||||
ffmpeg_err("Thread waiting for end of init phase...\n");
|
||||
ffmpeg_printf(10, "Thread waiting for end of init phase...\n");
|
||||
usleep(1000);
|
||||
}
|
||||
ffmpeg_printf(10, "Running!\n");
|
||||
|
||||
#ifdef __sh__
|
||||
uint32_t bufferSize = 0;
|
||||
context->output->Command(context, OUTPUT_GET_BUFFER_SIZE, &bufferSize);
|
||||
ffmpeg_printf(10, "bufferSize [%u]\n", bufferSize);
|
||||
#endif
|
||||
|
||||
int8_t isWaitingForFinish = 0;
|
||||
while (context && context->playback && context->playback->isPlaying)
|
||||
@@ -602,7 +608,7 @@ static void FFMPEGThread(Context_t *context)
|
||||
*/
|
||||
#ifdef __sh__
|
||||
//IF MOVIE IS PAUSED, WAIT
|
||||
if (context->playback->isPaused)
|
||||
if (0 == bufferSize && context->playback->isPaused)
|
||||
{
|
||||
ffmpeg_printf(20, "paused\n");
|
||||
reset_finish_timeout();
|
||||
|
Reference in New Issue
Block a user