MediaViewer: replace if-let chain with and_then
I've replaced the 4 deep if-let using the Option and_then and map methods. The last map method transform the ptr to an Option<bool> type, to be able to use the ? operator inside this closure.
Showing with 11 additions and 11 deletions