Skip to content

Inspector displays "Error" for filename #4289

@low-batt

Description

@low-batt

System and IINA version:

  • macOS 13.2.1
  • IINA

Expected behavior:
The filename displayed in the inspector window File tab matches the value shown in the Status tab if the mpv property filename is being watched in the Watch section of the inspector window.

Actual behavior:

The filename is displayed correctly in the File tab:

inspector-file

However the filename shows as "<error>" in the Status tab:

inspector-status

Steps to reproduce:
I have not tracked down the exact sequence required to reproduce this. Bringing up the settings panel is part of it. I noticed the problem while code reading and just wanted to demonstrate that it can result in a problem.

The offending code is this line from InspectorWindowController.tableView:

return PlayerCore.active.mpv.getString(property) ?? "<Error>"

The rest of the InspectorWindowController code is correctly using PlayerCore.lastActive instead of active.

I will post a PR with a fix shortly.

  • MPV does not have this problem.

This is an IINA problem.

How often does this happen?
It requires a certain sequence to reproduce, but it is reproducible.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions