mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
remove unnecessary c++ Visual() error check #378
This commit is contained in:
parent
e7d0ce72dd
commit
a325a6d4b0
@ -181,12 +181,6 @@ int main(int argc, char** argv){
|
|||||||
std::cerr << argv[i] << ": " << e.what() << "\n";
|
std::cerr << argv[i] << ": " << e.what() << "\n";
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
if(!ncv){
|
|
||||||
av_make_error_string(errbuf.data(), errbuf.size(), averr);
|
|
||||||
nc.stop();
|
|
||||||
std::cerr << "Error opening " << argv[i] << ": " << errbuf.data() << std::endl;
|
|
||||||
return EXIT_FAILURE;
|
|
||||||
}
|
|
||||||
int r = ncv->stream(&averr, timescale, perframe, &frames);
|
int r = ncv->stream(&averr, timescale, perframe, &frames);
|
||||||
if(r < 0){ // positive is intentional abort
|
if(r < 0){ // positive is intentional abort
|
||||||
av_make_error_string(errbuf.data(), errbuf.size(), averr);
|
av_make_error_string(errbuf.data(), errbuf.size(), averr);
|
||||||
|
Loading…
Reference in New Issue
Block a user