diff --git a/player/command.c b/player/command.c index 999e74d4d729a..824ac06f32551 100644 --- a/player/command.c +++ b/player/command.c @@ -559,8 +559,12 @@ static int mp_property_stream_open_filename(void *ctx, struct m_property *prop, return M_PROPERTY_OK; } case M_PROPERTY_GET_TYPE: - case M_PROPERTY_GET: - return m_property_strdup_ro(action, arg, mpctx->stream_open_filename); + case M_PROPERTY_GET: { + char *path = mp_normalize_path(NULL, mpctx->stream_open_filename); + int r = m_property_strdup_ro(action, arg, path); + talloc_free(path); + return r; + } } return M_PROPERTY_NOT_IMPLEMENTED; }