This avoids duplicating fname when it is a URL.
Unified · Split
| @@ -215,7 +215,9 @@ static char *mp_get_playback_resume_config_filename(struct MPContext *mpctx, · 214 unmodified lines | ||
| 215 | 215 | char *res = NULL; |
| 216 | 216 | void *tmp = talloc_new(NULL); |
| 217 | 217 | const char *path = NULL; |
| 218 | − if (opts->ignore_path_in_watch_later_config && !mp_is_url(bstr0(fname))) { | |
| 218 | + if (mp_is_url(bstr0(fname))) { | |
| 219 | + path = fname; | |
| 220 | + } else if (opts->ignore_path_in_watch_later_config) { | |
| 219 | 221 | path = mp_basename(fname); |
| 220 | 222 | } else { |
| 221 | 223 | path = mp_normalize_path(tmp, fname); |