fmang / opustags

Ogg Opus tags editor
BSD 3-Clause "New" or "Revised" License
75 stars 10 forks source link

Croak when a handler wasn't called #16

Closed fmang closed 5 years ago

fmang commented 8 years ago

Say you do --stream 2 --add TITLE=X. We've got two problematic cases:

In both cases, the user should at least be warned.

Technically, in these scenarii, the ITagsHandler::list isn't called, which makes that kind of detection a bit less obvious: it should be done in ITagsHandler::end_of_file. For non-Opus streams, we detect the problem right from ITagsHandler::start_of_file which passes the type of the stream as a parameter.