Skip to content

Commit

Permalink
export FramesMap.Size
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikh committed Mar 21, 2015
1 parent fbf5c65 commit 475f0d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (e *Encoder) WritePadding() error {

func (e *Encoder) WriteTag(t *Tag) error {
t.SetTextFrameTime("TDTG", time.Now().UTC())
err := e.WriteHeader(t.Frames.size() + e.Padding)
err := e.WriteHeader(t.Frames.Size() + e.Padding)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion id3.go
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ func (t *Tag) UserTextFrames() []UserTextInformationFrame {
return res
}

func (fm FramesMap) size() int {
func (fm FramesMap) Size() int {
size := 0
for _, frames := range fm {
for _, frame := range frames {
Expand Down

0 comments on commit 475f0d3

Please sign in to comment.