[vlc-commits] ncurses: display the file path instead of URI
Rafaël Carré
git at videolan.org
Wed May 18 22:12:16 CEST 2011
vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Wed May 18 16:01:40 2011 -0400| [e71a93750816d8f4b24a649826e9414f2072b7bf] | committer: Rafaël Carré
ncurses: display the file path instead of URI
Fix #4797
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e71a93750816d8f4b24a649826e9414f2072b7bf
---
modules/gui/ncurses.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/modules/gui/ncurses.c b/modules/gui/ncurses.c
index d3fcfd6..0674f6e 100644
--- a/modules/gui/ncurses.c
+++ b/modules/gui/ncurses.c
@@ -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)
More information about the vlc-commits
mailing list