[Live-devel] display issue about "totSessionBW parameter should not be zero!"

terry terry.chiu at montage-tech.com
Fri Mar 13 01:44:53 PDT 2015


I found an uninitialized local variable is as follow:

Index: liveMedia/OnDemandServerMediaSubsession.cpp
===================================================================
--- liveMedia/OnDemandServerMediaSubsession.cpp
+++ liveMedia/OnDemandServerMediaSubsession.cpp
@@ -109,7 +109,7 @@
     streamToken = fLastStreamToken;
   } else {
     // Normal case: Create a new media source:
-    unsigned streamBitrate;
+    unsigned streamBitrate = 0;
     FramedSource* mediaSource
       = createNewStreamSource(clientSessionId, streamBitrate);

This make the following prompt often disappeared.
  if (fTotSessionBW == 0) { // not allowed!
    env << "RTCPInstance::RTCPInstance error: totSessionBW parameter
should not be zero!\n";
    fTotSessionBW = 1;
  }


************************************************************

本邮件(包括所附附件)所含信息为保密信息,且仅为特定收件人之用。如果您不是特定收件人,切勿披露、复制、打印、转发或分发本邮件或其任何内容,亦请切勿依本邮件之任何内容而采取任何行动。如果本邮件误发送给您,请立即通知发件人并删除此邮件。谢谢!

This e-mail and any files transmitted herewith are confidential and may contain legally privileged information.  It is intended solely for the use of the addressee(s). If you are not the intended recipient, you are hereby notified that any use, disclosure, copying, printing, forwarding or dissemination of this e-mail is strictly prohibited. If you have received this e-mail in error, please immediately contact the sender and delete it from your system. Thank you!



More information about the live-devel mailing list