summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGavin Hurlbut <ghurlbut@mythtv.org>2011-08-01 09:20:02 (GMT)
committer Gavin Hurlbut <ghurlbut@mythtv.org>2011-08-01 09:20:44 (GMT)
commit1a41fec06ee2f6746c9ccb944efcf7ee62e52664 (patch)
tree82f32772c74b9e6fa2b092ca4c9b933e452b0fe1
parent99c3e23b6d945874b2c3eb202e4822e946ef5f81 (diff)
Fix mpeg2fix randomly aborting. OBEY EAGAIN for av_read_frame! :)
-rw-r--r--mythtv/programs/mythtranscode/mpeg2fix.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/mythtv/programs/mythtranscode/mpeg2fix.cpp b/mythtv/programs/mythtranscode/mpeg2fix.cpp
index 3b5abc9..a4b30f4 100644
--- a/mythtv/programs/mythtranscode/mpeg2fix.cpp
+++ b/mythtv/programs/mythtranscode/mpeg2fix.cpp
@@ -1261,6 +1261,10 @@ int MPEG2fixup::GetFrame(AVPacket *pkt)
if (ret < 0)
{
+ // If it is EAGAIN, obey it, dangit!
+ if (ret == -EAGAIN)
+ continue;
+
//insert a bogus frame (this won't be written out)
if(vFrame.isEmpty())
{