> Could you please resend this as a ‘contextual’ diff (using “diff -c”), so I can see exactly where in the code you added this?

Here it is:

*** live/liveMedia/RTSPServer.cpp       2020-11-21 01:58:05.000000000 -0800
--- live.new/liveMedia/RTSPServer.cpp   2020-11-23 15:16:26.404658105 -0800
***************
*** 1317,1322 ****
--- 1317,1332 ----
fStreamStates[i].tcpSocketNum = -1; // for now; may get set for RTP-over-TCP
streaming
fStreamStates[i].streamToken = NULL; // for now; it may be changed by the
"getStreamParameters()" call that comes later
        }
+       // simple logging added by jeh 11/23/2020
+       FILE* logfid = fopen("live555.log", "a" ) ;
+       if (logfid != NULL) {
+       time_t tm = time(NULL) ;
+       char * tmstr = ctime(&tm ) ;
+       fwrite( streamName, 1, strlen(streamName), logfid ) ;
+       fwrite (", ",1,2,logfid) ;
+       fwrite( tmstr, 1, strlen(tmstr), logfid ) ;
+       fclose( logfid ) ;
+       }
      }

      // Look up information for the specified subsession (track):

--
Porcine Associates LLC
244 O'Connor St.
Menlo Park, CA 94025
USA
+1(650)326-2669 fax +1(650)326-1071
_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to