input: ignore empty lines on drag-drop mime data

do not outright err and quit the player for this
This commit is contained in:
thewisenerd 2018-10-21 20:17:49 +05:30 committed by wm4
parent 3d911d8ef0
commit 2a29950020
1 changed files with 1 additions and 1 deletions

View File

@ -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);