A fix proposal to fix issue #3, I added an Option wrapping to get_tag return.
Explanation :
As mentioned in the the thread, libsndfile will return a NULL pointer if the asked tag does not exists, which cause a segfault. This fix deals with the NULL ptr by return a None
As I understand it is a little breaking change tell me if you'd rather return an empty string as mentioned in the issue thread, it could be done too, even though it might not be the most idiomatic.
Close #3
A fix proposal to fix issue #3, I added an
Option
wrapping toget_tag
return.Explanation : As mentioned in the the thread, libsndfile will return a
NULL
pointer if the asked tag does not exists, which cause a segfault. This fix deals with theNULL
ptr by return a NoneAs I understand it is a little breaking change tell me if you'd rather return an empty string as mentioned in the issue thread, it could be done too, even though it might not be the most idiomatic.