Re: media.cpp: uncommented code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ming!

 

Ah, I overlooked that... So the problem in my case was that format.type was set to PJMEDIA_TYPE_UNKNOWN, and hence the members of the object didn’t get initialized. (I’m still confused why it’s set to unknown, because it is the automatically generated audio media object for the default sound card, which IMHO should be set to PJMEDIA_TYPE_AUDIO, but anyway – I’ll bother with that later).

 

Thanks for your answer!

Georg

 

PS: isn’t commented-out code considered bad style?

PPS: sorry for the line number – I don’t know where I was looking

 

From: pjsip [mailto:pjsip-bounces@xxxxxxxxxxxxxxx] On Behalf Of Ming
Sent: Friday, September 16, 2016 15:58
To: pjsip list <pjsip@xxxxxxxxxxxxxxx>
Subject: Re: [pjsip] media.cpp: uncommented code

 

Hi Georg,

 

Not sure which you're referring to, line 1590 is the end of the file.

If you're referring to this:

 

Then it looks correct, since format field will be populated by the code 

"format.fromPj(port_info.format);"

 

Regards,

Ming

 

On Fri, Sep 16, 2016 at 9:07 AM, Piewald Georg <gpi@xxxxxxxxxxxxxxxxxxxx> wrote:

Hi,

After investigating a problem in my software, I discovered that in media.cpp line 1590, ConfPortInfo::fromPj() there is some commented-out code. However, this code is necessary, otherwise some object members are not initialized. There is no reason given why it is uncommented. Is it simply a bug?

Best regards,

Georg


_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

 

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux