[mythtv] [PATCH] fix avformatdecoder busyloop
Robert Tsai
rtsai1111 at comcast.net
Tue Jun 21 23:54:58 UTC 2005
On Wed, Jun 22, 2005 at 02:30:59AM +0300, Markus Linnala wrote:
> Guess if there is no valid audiostream, we get stuck at
> AvFormatDecoder::autoSelectAudioTrack.
>
> It is possible the fix is not correct one, but there is definitely
> busyloop there.
>
> Patch against CVS HEAD.
This has been batted around, but no one has committed a fix yet:
http://www.gossamer-threads.com/lists/mythtv/dev/135701
http://www.gossamer-threads.com/lists/mythtv/dev/136167
I still like Mark's solution the best.
> Index: ./libs/libmythtv/avformatdecoder.cpp
> ===================================================================
> RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/avformatdecoder.cpp,v
> retrieving revision 1.151
> diff -u -r1.151 avformatdecoder.cpp
> --- ./libs/libmythtv/avformatdecoder.cpp 3 Jun 2005 18:21:36 -0000 1.151
> +++ ./libs/libmythtv/avformatdecoder.cpp 21 Jun 2005 23:25:12 -0000
> @@ -1361,13 +1361,13 @@
> }
> }
> }
> - if (selectedTrack > maxTracks)
> + if (track > maxTracks)
> {
> minChannels--;
> }
> }
>
> - if (selectedTrack > maxTracks)
> + if (track > maxTracks)
> {
> VERBOSE(VB_AUDIO,
> QString("No suitable audio track exists."));
--Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20050621/e3b2492e/attachment.pgp
More information about the mythtv-dev
mailing list