Skip to content

rtp.Session.WriteData returns 0 regardless of whether the write was successful #9

@tonickkozlov

Description

@tonickkozlov

Hello and thanks for a very useful library.

I've noticed that func (rs *Session) WriteData(rp *DataPacket) (n int, err error)
always returns n=0 regardless of the outcome of writing into transport.

Looks like the named return value n is never being assigned.

https://github.com/wernerd/GoRTP/blob/master/src/net/rtp/session.go#L716

Is this expected behaviour?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions