delete the capture in the FramedSource

pull/33/head
Michel Promonet 9 years ago
parent a4ab37c52d
commit 1ec5f4f987

@ -59,11 +59,11 @@ Usage
RTSP options :
-I addr : RTSP interface (default autodetect)
-P port : RTSP port (default 8554)
-T port : RTSP over HTTP port (default 0)
-u url : unicast url (default unicast)
-m url : multicast url (default multicast)
-M addr : multicast group (default is a random address)
-c : don't repeat config (default repeat config before IDR frame)
-T port : RTSP over HTTP port (default 0)
-u url : unicast url (default unicast)
-m url : multicast url (default multicast)
-M addr : multicast group (default is a random address)
-c : don't repeat config (default repeat config before IDR frame)
-t secs : RTCP expiration timeout (default 65)
V4L2 options :
-r : V4L2 capture using read interface (default use memory mapped buffers)

@ -85,6 +85,7 @@ V4L2DeviceSource::~V4L2DeviceSource()
m_device->captureStop();
pthread_join(m_thid, NULL);
pthread_mutex_destroy(&m_mutex);
delete m_device;
}
// thread mainloop

@ -203,6 +203,7 @@ int main(int argc, char** argv)
if (videoES == NULL)
{
LOG(FATAL) << "Unable to create source for device " << dev_name;
delete videoCapture;
}
else
{
@ -228,8 +229,6 @@ int main(int argc, char** argv)
LOG(NOTICE) << "Exiting....";
Medium::close(videoES);
}
videoCapture->captureStop();
delete videoCapture;
}
Medium::close(rtspServer);
}

Loading…
Cancel
Save