Commit 397a50d4 authored by Jean-Paul Saman's avatar Jean-Paul Saman Committed by Christophe Massiot

DVB-S2 clear the previous command before tuning to new channel.

parent 3f5c997c
......@@ -677,6 +677,15 @@ static struct dtv_properties dvbt_cmdseq = {
#define FEC_INNER 4
#define ROLLOFF 7
struct dtv_property pclear[] = {
{ .cmd = DTV_CLEAR },
};
struct dtv_properties cmdclear = {
.num = 1,
.props = pclear
};
static void FrontendSet( void )
{
struct dvb_frontend_info info;
......@@ -690,6 +699,13 @@ static void FrontendSet( void )
FrontendInfo( info );
/* Clear frontend commands */
if ( ioctl( i_frontend, FE_SET_PROPERTY, &cmdclear ) < 0 )
{
msg_Err( NULL, "Unable to clear frontend" );
exit(1);
}
switch ( info.type )
{
case FE_OFDM:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment