[mythtv] [PATCH] db error with duplicate GOPs

Doug Larrick doug at ties.org
Sat Jun 12 13:19:23 EDT 2004


Chris Pinkham wrote:
> <patch snipped>
> 
> I think this can be fixed much simpler by just changing the following
> two lines from this:
> 
>                            positionMap[frameNum] = startpos;
>                            positionMapDelta[frameNum] = startpos;
> 
> to this:
> 
>                            if (!positionMap.contains(frameNum))
>                                positionMapDelta[frameNum] = startpos;
>                            positionMap[frameNum] = startpos;
> 

That's essentially what I did, though I used .find() == .end() rather 
than !.contains(), and I also skip subsequent processing as unnecessary 
if the positionmaps haven't changed.

Anyway, your patch will get the job done.  Thanks for getting this in 
quickly.

-Doug
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20040612/7d662e73/signature.pgp


More information about the mythtv-dev mailing list