mirror of https://github.com/mpv-player/mpv
input: ignore empty lines on drag-drop mime data
do not outright err and quit the player for this
This commit is contained in:
parent
3d911d8ef0
commit
2a29950020
|
@ -64,7 +64,7 @@ int mp_event_drop_mime_data(struct input_ctx *ictx, const char *mime_type,
|
|||
while (data.len) {
|
||||
bstr line = bstr_getline(data, &data);
|
||||
line = bstr_strip_linebreaks(line);
|
||||
if (bstr_startswith0(line, "#"))
|
||||
if (bstr_startswith0(line, "#") || !line.start[0])
|
||||
continue;
|
||||
char *s = bstrto0(tmp, line);
|
||||
MP_TARRAY_APPEND(tmp, files, num_files, s);
|
||||
|
|
Loading…
Reference in New Issue