X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Faccess%2Fdvb%2Faccess.c;h=d08a7a2dedfd530eca44e4af136b0076acc245d9;hb=6ee1e193fd896ab9a4729fde14f009d9ce629815;hp=4ad0c641409e222286bcda810d02aa1143c63a6d;hpb=fe99a2ad789a0ee0a61f489a1f4af3fd50d8d6b9;p=vlc diff --git a/modules/access/dvb/access.c b/modules/access/dvb/access.c index 4ad0c64140..d08a7a2ded 100644 --- a/modules/access/dvb/access.c +++ b/modules/access/dvb/access.c @@ -28,7 +28,8 @@ * Preamble *****************************************************************************/ #include -#include +#include +#include #ifdef HAVE_UNISTD_H # include @@ -180,7 +181,7 @@ static void Close( vlc_object_t *p_this ); vlc_module_begin(); set_shortname( _("DVB") ); - set_description( N_("DVB input with v4l2 support") ); + set_description( _("DVB input with v4l2 support") ); set_category( CAT_INPUT ); set_subcategory( SUBCAT_INPUT_ACCESS ); @@ -252,14 +253,21 @@ vlc_module_begin(); #endif set_capability( "access2", 0 ); - add_shortcut( "dvb" ); - add_shortcut( "dvb-s" ); + add_shortcut( "dvb" ); /* Generic name */ + + add_shortcut( "dvb-s" ); /* Satellite */ add_shortcut( "qpsk" ); - add_shortcut( "dvb-c" ); + add_shortcut( "satellite" ); + + add_shortcut( "dvb-c" ); /* Cable */ add_shortcut( "cable" ); - add_shortcut( "dvb-t" ); + + add_shortcut( "dvb-t" ); /* Terrestrial */ add_shortcut( "terrestrial" ); - add_shortcut( "satellite" ); /* compatibility with the interface. */ + + add_shortcut( "atsc" ); /* Atsc */ + add_shortcut( "usdigital" ); + set_callbacks( Open, Close ); vlc_module_end(); @@ -307,6 +315,9 @@ static int Open( vlc_object_t *p_this ) p_access->info.i_seekpoint = 0; p_access->p_sys = p_sys = malloc( sizeof( access_sys_t ) ); + if( !p_sys ) + return VLC_ENOMEM; + memset( p_sys, 0, sizeof( access_sys_t ) ); /* Create all variables */ @@ -408,7 +419,7 @@ static block_t *Block( access_t *p_access ) ufds[0].fd = p_sys->i_handle; ufds[0].events = POLLIN; ufds[1].fd = p_sys->i_frontend_handle; - ufds[1].events = POLLOUT; + ufds[1].events = POLLPRI; /* We'll wait 0.5 second if nothing happens */ /* Find if some data is available */ @@ -712,6 +723,9 @@ static int ParseMRL( access_t *p_access ) { msg_Err( p_access, "the DVB input old syntax is deprecated, use vlc " "-p dvb to see an explanation of the new syntax" ); + intf_UserFatal( p_access, VLC_TRUE, _("Input syntax is deprecated"), + _("The given syntax is deprecated. Run \"vlc -p dvb\" to see an " \ + "explanation of the new syntax.") ); free( psz_dup ); return VLC_EGENERIC; } @@ -756,6 +770,9 @@ static int ParseMRL( access_t *p_access ) else { msg_Err( p_access, "illegal polarization %c", *psz_parser ); + intf_UserFatal( p_access, VLC_FALSE, _("Illegal Polarization"), + _("The provided polarization \"%c\" is not valid."), + *psz_parser ); free( psz_dup ); return VLC_EGENERIC; }