Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix mpeg2fix randomly aborting. OBEY EAGAIN for av_read_frame! :)

(cherry picked from commit 1a41fec)
  • Loading branch information...
commit d525265399ac8352265dbc12d7d29b9d50a852c3 1 parent 5be3cdf
@Beirdo Beirdo authored stuartm committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 mythtv/programs/mythtranscode/mpeg2fix.cpp
View
4 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())
{
Please sign in to comment.
Something went wrong with that request. Please try again.