Commit e71a9375 authored by Rafaël Carré's avatar Rafaël Carré

ncurses: display the file path instead of URI

Fix #4797
parent 8a9be8a8
......@@ -1095,10 +1095,14 @@ static int DrawStatus(intf_thread_t *p_intf)
if (p_input && !p_input->b_dead)
{
vlc_value_t val;
char *psz_path, *psz_uri;
char *psz_uri = input_item_GetURI(input_GetItem(p_input));
mvnprintw(y++, 0, COLS, _(" Source : %s"), psz_uri);
psz_uri = input_item_GetURI(input_GetItem(p_input));
psz_path = make_path(psz_uri);
mvnprintw(y++, 0, COLS, _(" Source : %s"), psz_path?psz_path:psz_uri);
free(psz_uri);
free(psz_path);
var_Get(p_input, "state", &val);
switch(val.i_int)
......
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