Skip to content

Commit b47fd28

Browse files
guidocellaDudemanguy
authored andcommitted
command: normalize stream-open-filename
Since 38ad1ed path is normalized but stream-open-filename is not, making the docs where it says that they are the same wrong, so normalize stream-open-filename too.
1 parent ff1bb2f commit b47fd28

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

player/command.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,8 +559,12 @@ static int mp_property_stream_open_filename(void *ctx, struct m_property *prop,
559559
return M_PROPERTY_OK;
560560
}
561561
case M_PROPERTY_GET_TYPE:
562-
case M_PROPERTY_GET:
563-
return m_property_strdup_ro(action, arg, mpctx->stream_open_filename);
562+
case M_PROPERTY_GET: {
563+
char *path = mp_normalize_path(NULL, mpctx->stream_open_filename);
564+
int r = m_property_strdup_ro(action, arg, path);
565+
talloc_free(path);
566+
return r;
567+
}
564568
}
565569
return M_PROPERTY_NOT_IMPLEMENTED;
566570
}

0 commit comments

Comments
 (0)