Commit 31e148e2 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Media: Do not display non-sensical infos

Close #6972 #6973
parent 0617a776
......@@ -93,8 +93,10 @@ public class MediaInfoAdapter extends ArrayAdapter<TrackInfo> {
}
private void appendVideo(StringBuilder textBuilder, Resources res, TrackInfo track) {
textBuilder.append(res.getString(R.string.track_resolution_info, track.Width, track.Height));
textBuilder.append(res.getString(R.string.track_framerate_info, track.Framerate));
if( track.Width != 0 && track.Height != 0 )
textBuilder.append(res.getString(R.string.track_resolution_info, track.Width, track.Height));
if( !Float.isNaN(track.Framerate) )
textBuilder.append(res.getString(R.string.track_framerate_info, track.Framerate));
}
static class ViewHolder {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment