mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-18 16:03:28 +08:00
add comment
This commit is contained in:
@@ -44,6 +44,7 @@ func NewImageFromPlayerPicture(picture miaosic.Picture) (*canvas.Image, error) {
|
||||
if uri == nil {
|
||||
return nil, errors.New("fail to fail url")
|
||||
}
|
||||
// NewImageFromURI will return an image with empty resource and file
|
||||
img = canvas.NewImageFromURI(uri)
|
||||
if img == nil || (img.File == "" && img.Resource == nil) {
|
||||
// bug fix, return a new error to indicate fail to read an image
|
||||
|
||||
Reference in New Issue
Block a user