diff options
author | Jochen Dolze <vdr@dolze.de> | 2011-03-14 23:08:40 +0100 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2011-03-14 23:08:40 +0100 |
commit | 0662afd6d8816713ebeef519b38456d0f57a837b (patch) | |
tree | d16c991b8677d6c068d9b20281951097256310cd /command/decoder.cpp | |
parent | ad13e186a657a6d2488dcc608ef670804107f4a7 (diff) | |
download | vdr-plugin-markad-0662afd6d8816713ebeef519b38456d0f57a837b.tar.gz vdr-plugin-markad-0662afd6d8816713ebeef519b38456d0f57a837b.tar.bz2 |
Added -O3 and -funroll-loops in Makefile
Reverted cutval to 127, adding commandline argument later
Fixed demux error with TS files
Added more info messages
Diffstat (limited to 'command/decoder.cpp')
-rw-r--r-- | command/decoder.cpp | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/command/decoder.cpp b/command/decoder.cpp index 9b3fcca..2a8f9a3 100644 --- a/command/decoder.cpp +++ b/command/decoder.cpp @@ -103,6 +103,10 @@ cMarkAdDecoder::cMarkAdDecoder(bool useH264, bool useMP2, bool hasAC3, int Threa last_qscale_table=NULL; skipframes=true; + noticeERRVID=false; + noticeERRMP2=false; + noticeERRAC3=false; + cpu_set_t cpumask; uint len = sizeof(cpumask); int cpucount; @@ -476,7 +480,11 @@ bool cMarkAdDecoder::DecodeMP2(MarkAdContext *maContext, uchar *espkt, int eslen #endif if (len<0) { - esyslog("error decoding mp2"); + if (!noticeERRMP2) + { + esyslog("error decoding mp2"); + noticeERRMP2=true; + } break; } if (audiobufsize>0) @@ -517,7 +525,11 @@ bool cMarkAdDecoder::DecodeAC3(MarkAdContext *maContext, uchar *espkt, int eslen #endif if (len<0) { - esyslog("error decoding ac3"); + if (!noticeERRAC3) + { + esyslog("error decoding ac3"); + noticeERRAC3=true; + } break; } if (audiobufsize>0) @@ -603,7 +615,11 @@ bool cMarkAdDecoder::DecodeVideo(MarkAdContext *maContext,uchar *pkt, int plen) #endif if (len<0) { - esyslog("error decoding video"); + if (!noticeERRVID) + { + esyslog("error decoding video"); + noticeERRVID=true; + } break; } else |