mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
src/driver/record.cpp check avformat_write_header return
Origin commit data
------------------
Commit: 2e602c0c95
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-02-06 (Sat, 06 Feb 2016)
This commit is contained in:
@@ -2128,7 +2128,10 @@ void CStreamRec::run()
|
|||||||
time_t tstart = time_monotonic();
|
time_t tstart = time_monotonic();
|
||||||
time_started = tstart;
|
time_started = tstart;
|
||||||
start_time = time(0);
|
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;
|
double total = 0;
|
||||||
while (!stopped) {
|
while (!stopped) {
|
||||||
|
Reference in New Issue
Block a user