mirror of https://github.com/mpv-player/mpv
tv: remove printing of useless comment information
This commit is contained in:
parent
383cf20785
commit
fcf9bb95b5
11
stream/tv.c
11
stream/tv.c
|
@ -724,10 +724,7 @@ static tvi_handle_t *tv_begin(tv_param_t* tv_param, struct mp_log *log)
|
|||
if(tv_param->driver && !strcmp(tv_param->driver,"help")){
|
||||
mp_info(log, "Available drivers:\n");
|
||||
for(i=0;tvi_driver_list[i];i++){
|
||||
mp_info(log, " %s\t%s",tvi_driver_list[i]->short_name,tvi_driver_list[i]->name);
|
||||
if(tvi_driver_list[i]->comment)
|
||||
mp_info(log, " (%s)",tvi_driver_list[i]->comment);
|
||||
mp_info(log, "\n");
|
||||
mp_info(log, " %s\t%s\n",tvi_driver_list[i]->short_name,tvi_driver_list[i]->name);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
@ -743,10 +740,8 @@ static tvi_handle_t *tv_begin(tv_param_t* tv_param, struct mp_log *log)
|
|||
continue;
|
||||
|
||||
h->tv_param=tv_param;
|
||||
MP_INFO(h, "Selected driver: %s\n name: %s\n author: %s\n comment: %s\n", tvi_driver_list[i]->short_name,
|
||||
tvi_driver_list[i]->name,
|
||||
tvi_driver_list[i]->author,
|
||||
tvi_driver_list[i]->comment?tvi_driver_list[i]->comment:"");
|
||||
MP_INFO(h, "Selected driver: %s\n name: %s\n", tvi_driver_list[i]->short_name,
|
||||
tvi_driver_list[i]->name);
|
||||
talloc_free(tv_param->driver);
|
||||
tv_param->driver=talloc_strdup(NULL, tvi_driver_list[i]->short_name);
|
||||
return h;
|
||||
|
|
|
@ -80,8 +80,6 @@ typedef struct tvi_info_s
|
|||
struct tvi_handle_s * (*tvi_init)(struct mp_log *log, tv_param_t* tv_param);
|
||||
const char *name;
|
||||
const char *short_name;
|
||||
const char *author;
|
||||
const char *comment;
|
||||
} tvi_info_t;
|
||||
|
||||
|
||||
|
|
|
@ -30,8 +30,6 @@ const tvi_info_t tvi_info_dummy = {
|
|||
tvi_init_dummy,
|
||||
"NULL-TV",
|
||||
"dummy",
|
||||
"alex",
|
||||
NULL
|
||||
};
|
||||
|
||||
/* private data's */
|
||||
|
|
|
@ -75,8 +75,6 @@ const tvi_info_t tvi_info_v4l2 = {
|
|||
tvi_init_v4l2,
|
||||
"Video 4 Linux 2 input",
|
||||
"v4l2",
|
||||
"Martin Olschewski <olschewski@zpr.uni-koeln.de>",
|
||||
"first try, more to come ;-)"
|
||||
};
|
||||
|
||||
struct map {
|
||||
|
|
Loading…
Reference in New Issue