mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-31 01:10:58 +02:00
Add buffering for Linux DVB outputs
Signed-off-by: max_10 <max_10@gmx.de>
Origin commit data
------------------
Branch: master
Commit: 9810376666
Author: samsamsam <samsamsam@o2.pl>
Date: 2018-03-31 (Sat, 31 Mar 2018)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -522,21 +522,40 @@ static int Command(Context_t *context, OutputCmd_t command, void *argument)
|
||||
ret = cERR_OUTPUT_INTERNAL_ERROR;
|
||||
}
|
||||
break;
|
||||
case OUTPUT_GET_PROGRESSIVE:
|
||||
}
|
||||
case OUTPUT_GET_PROGRESSIVE:
|
||||
{
|
||||
if (context && context->playback)
|
||||
{
|
||||
if (context && context->playback)
|
||||
if (context->playback->isVideo)
|
||||
{
|
||||
if (context->playback->isVideo)
|
||||
{
|
||||
return context->output->video->Command(context, OUTPUT_GET_PROGRESSIVE, (void *) argument);
|
||||
}
|
||||
return context->output->video->Command(context, OUTPUT_GET_PROGRESSIVE, (void *) argument);
|
||||
}
|
||||
else
|
||||
{
|
||||
ret = cERR_OUTPUT_INTERNAL_ERROR;
|
||||
}
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
ret = cERR_OUTPUT_INTERNAL_ERROR;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case OUTPUT_SET_BUFFER_SIZE:
|
||||
{
|
||||
if (context && context->playback)
|
||||
{
|
||||
if (context->output->video)
|
||||
{
|
||||
return context->output->video->Command(context, OUTPUT_SET_BUFFER_SIZE, argument);
|
||||
}
|
||||
else if (context->output->audio)
|
||||
{
|
||||
return context->output->audio->Command(context, OUTPUT_SET_BUFFER_SIZE, argument);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ret = cERR_OUTPUT_INTERNAL_ERROR;
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
output_err("%s::%s OutputCmd %d not supported!\n", __FILE__, __FUNCTION__, command);
|
||||
|
Reference in New Issue
Block a user