Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mono/taglib-sharp
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: dc735d7946b49d2d3b633c3d2705d004351fbe8a
Choose a base ref
..
head repository: mono/taglib-sharp
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e674c3ad5e254dbe8564861a5805844f1e5f0988
Choose a head ref
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/TaglibSharp/Picture.cs
  2. +1 −1 src/TaglibSharp/PictureLazy.cs
2 changes: 1 addition & 1 deletion src/TaglibSharp/Picture.cs
Original file line number Diff line number Diff line change
@@ -365,7 +365,7 @@ public Picture (File.IFileAbstraction abstraction)
Filename = abstraction.Name;
Description = abstraction.Name;

if (!string.IsNullOrEmpty (Filename) && Filename.Contains ('.')) {
if (!string.IsNullOrEmpty (Filename) && Filename.Contains (".")) {
MimeType = GetMimeFromExtension (Filename);
Type = MimeType.StartsWith ("image/") ? PictureType.FrontCover : PictureType.NotAPicture;
} else {
2 changes: 1 addition & 1 deletion src/TaglibSharp/PictureLazy.cs
Original file line number Diff line number Diff line change
@@ -148,7 +148,7 @@ public PictureLazy (File.IFileAbstraction abstraction, long offset = 0, long siz
filename = abstraction.Name;
Description = abstraction.Name;

if (!string.IsNullOrEmpty (filename) && filename.Contains ('.')) {
if (!string.IsNullOrEmpty (filename) && filename.Contains (".")) {
mime_type = Picture.GetMimeFromExtension (filename);
type = mime_type.StartsWith ("image/") ? PictureType.FrontCover : PictureType.NotAPicture;
}