src/driver/record.cpp check avformat_write_header return

Origin commit data
------------------
Branch: ni/coolstream
Commit: 2e602c0c95
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-02-06 (Sat, 06 Feb 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2016-02-06 15:19:18 +01:00
parent c6320b3f12
commit c9e2d4794c

View File

@@ -2128,7 +2128,10 @@ void CStreamRec::run()
time_t tstart = time_monotonic();
time_started = tstart;
start_time = time(0);
avformat_write_header(ofcx, NULL);
if (avformat_write_header(ofcx, NULL) < 0) {
printf("%s: avformat_write_header failed\n", __FUNCTION__);
return;
}
double total = 0;
while (!stopped) {