Ticket #297: commflag-glibc-abort.diff

File commflag-glibc-abort.diff, 898 bytes (added by Stuart Auchterlonie, 15 years ago)

Patch I created follow cpinkham's suggestions.

  • libs/libmythtv/NuppelVideoPlayer.cpp

    old new (this hunk was shorter than expected) 
    43584358{
    43594359    subtitleLock.lock();
    43604360
    43614361    while (nonDisplayedSubtitles.size() > 0)
    43624362    {
    4363         AVSubtitle& subtitle = nonDisplayedSubtitles.front();
     4363        const AVSubtitle subtitle = nonDisplayedSubtitles.front();
     4364        nonDisplayedSubtitles.pop_front();
    43644365
    43654366        // Because the subtitles were not displayed, OSDSet does not
    43664367        // free the OSDTypeImages in ClearAll(), so we have to free
     
    43744377
    43754378        if (subtitle.num_rects > 0)
    43764379            av_free(subtitle.rects);
    4377 
    4378         nonDisplayedSubtitles.pop_front();
    43794380    }
    43804381
    43814382    subtitleLock.unlock();