summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGavin Hurlbut <ghurlbut@mythtv.org>2011-08-01 09:20:02 (GMT)
committer Stuart Morgan <smorgan@mythtv.org>2011-08-01 10:53:06 (GMT)
commitd525265399ac8352265dbc12d7d29b9d50a852c3 (patch)
treeef848a4d87d3ee443d8bb285ce50379bf893205e
parent5be3cdf4561f38e1b93012305657b72aab182ca2 (diff)
Fix mpeg2fix randomly aborting. OBEY EAGAIN for av_read_frame! :)
(cherry picked from commit 1a41fec06ee2f6746c9ccb944efcf7ee62e52664)
-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 2fce5e2..b3e477d 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())
{