mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 17:31:20 +02:00
src/driver/record.cpp check avformat_write_header return
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