Skip to content

Commit

Permalink
Merge pull request #13 from rohitggarg/master
Browse files Browse the repository at this point in the history
Not using pointer ref, as the base is a pointer in itself
  • Loading branch information
xfrr authored Jun 19, 2018
2 parents 3ed155e + 916ce58 commit 21d8833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/media.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ func (m *Mediafile) ToStrCommand() string {
"OutputPath",
}
for _, name := range opts {
opt := reflect.ValueOf(&m).MethodByName(fmt.Sprintf("Obtain%s", name))
opt := reflect.ValueOf(m).MethodByName(fmt.Sprintf("Obtain%s", name))
if (opt != reflect.Value{}) {
result := opt.Call([]reflect.Value{})

Expand Down

0 comments on commit 21d8833

Please sign in to comment.