View Single Post
  #284  
Old 09-14-2014, 04:45 AM
lto lto is offline
Junior Member
 
Join Date: Mar 2014
Posts: 9
lto is on a distinguished road
Default

Re: Customized rtmpdump binaries with patch file


Quote:
Originally Posted by lto View Post
I was able to fix the problem I described in private message.
I am on Windows I was able to attach debugger and reproduced crash multiple times in same place:

Code:
	...
	              if (server->f_cur && server->rc.m_mediaChannel && !paused)
	                {
>	                  server->rc.m_pauseStamp = server->rc.m_channelTimestamp[server->rc.m_mediaChannel];
	                  if (RTMP_ToggleStream(&server->rc))
{

I checked if server is 0 but it didn't help, so I just called inside this if:

Code:
goto cleanup;
and it works, no more crashes with rtmpdumphelper

I think in some cases this server structure is messed up and crash happens
Just an info to people who asked how to fix this problem.

If you want to have stable rtmpdump + rtmpdumphelper build, without crashes when "camera switches to private mode" - above solution still works, so please include that in your patches.
Reply With Quote