Commit 6bc17291 authored by Christophe Massiot's avatar Christophe Massiot

* dvblast.c, dvb.c: Close XML tags when quitting.

parent 486ca354
...@@ -197,6 +197,13 @@ block_t *dvb_Read( mtime_t i_poll_timeout ) ...@@ -197,6 +197,13 @@ block_t *dvb_Read( mtime_t i_poll_timeout )
if ( i_quit_timeout_duration ) if ( i_quit_timeout_duration )
{ {
msg_Err( NULL, "no lock" ); msg_Err( NULL, "no lock" );
switch (i_print_type) {
case PRINT_XML:
printf("</TS>\n");
break;
default:
break;
}
exit(EXIT_STATUS_FRONTEND_TIMEOUT); exit(EXIT_STATUS_FRONTEND_TIMEOUT);
} }
msg_Warn( NULL, "no lock, tuning again" ); msg_Warn( NULL, "no lock, tuning again" );
......
...@@ -917,7 +917,16 @@ int main( int i_argc, char **pp_argv ) ...@@ -917,7 +917,16 @@ int main( int i_argc, char **pp_argv )
} }
if ( i_quit_timeout && i_quit_timeout <= i_wallclock ) if ( i_quit_timeout && i_quit_timeout <= i_wallclock )
{
switch (i_print_type) {
case PRINT_XML:
printf("</TS>\n");
break;
default:
break;
}
exit(EXIT_SUCCESS); exit(EXIT_SUCCESS);
}
p_ts = pf_Read( i_poll_timeout ); p_ts = pf_Read( i_poll_timeout );
if ( p_ts != NULL ) if ( p_ts != NULL )
......
...@@ -21,7 +21,7 @@ S 11408000 V 27500000 3/4 ...@@ -21,7 +21,7 @@ S 11408000 V 27500000 3/4
S 11591000 V 20000000 2/3 S 11591000 V 20000000 2/3
# Hispasat 30.0W # Hispasat 30.0W
S 12015000 V 27500000 3/4 S 12015000 V 27500000 3/4
# Telsat 12 15.0W # Telstar 12 15.0W
S 11060000 H 19279000 3/4 S 11060000 H 19279000 3/4
# Thor 1.0W # Thor 1.0W
S 11216000 V 24500000 7/8 S 11216000 V 24500000 7/8
......
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