X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Faccess%2Fpvr.c;h=e7d255ca435399a34df79d939671b3daf4f71ca9;hb=d727c4590f83751a2f28fcdfd8af3886ebeb45d8;hp=522a484389a6c52143b31c61a6bf454b515d6fff;hpb=449fd28aaf007c6411251dae9d0dbfdc65b135d1;p=vlc diff --git a/modules/access/pvr.c b/modules/access/pvr.c index 522a484389..e7d255ca43 100644 --- a/modules/access/pvr.c +++ b/modules/access/pvr.c @@ -29,7 +29,8 @@ # include "config.h" #endif -#include +#include +#include #include #include @@ -113,22 +114,22 @@ static void Close( vlc_object_t * ); #define CHAN_LONGTEXT N_( "Channel of the card to use (Usually, 0 = tuner, " \ "1 = composite, 2 = svideo)" ) -static int i_norm_list[] = +static const int i_norm_list[] = { V4L2_STD_UNKNOWN, V4L2_STD_SECAM, V4L2_STD_PAL, V4L2_STD_NTSC }; -static const char *psz_norm_list_text[] = +static const char *const psz_norm_list_text[] = { N_("Automatic"), N_("SECAM"), N_("PAL"), N_("NTSC") }; -static int i_bitrates[] = { 0, 1 }; -static const char *psz_bitrates_list_text[] = { N_("vbr"), N_("cbr") }; +static const int i_bitrates[] = { 0, 1 }; +static const char *const psz_bitrates_list_text[] = { N_("vbr"), N_("cbr") }; -static int pi_radio_range[2] = { 65000, 108000 }; +static const int pi_radio_range[2] = { 65000, 108000 }; vlc_module_begin(); - set_shortname( _("PVR") ); - set_description( _("IVTV MPEG Encoding cards input") ); + set_shortname( N_("PVR") ); + set_description( N_("IVTV MPEG Encoding cards input") ); set_category( CAT_INPUT ); set_subcategory( SUBCAT_INPUT_ACCESS ); - set_capability( "access2", 0 ); + set_capability( "access", 0 ); add_shortcut( "pvr" ); add_integer( "pvr-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, @@ -1082,7 +1083,7 @@ static ssize_t Read( access_t * p_access, uint8_t * p_buffer, size_t i_len ) do { - if( p_access->b_die ) + if( !vlc_object_alive (p_access) ) return 0; ufd.revents = 0;