Ticket #7113: ticket_7113_potential_fix.diff

File ticket_7113_potential_fix.diff, 1.1 KB (added by skamithi, 15 years ago)

potential fix for the problem. have no time to test it. waiting for feedback.

  • libs/libmythtv/avformatdecoder.cpp

     
    33703370                return false;
    33713371            }
    33723372
     3373          /* This note is just for the testing patch.
     3374                Check that the new packet produced
     3375             is from the video codec stream...not from the audio stream */
    33733376            if (ringBuffer->isDVD() &&
    33743377                ringBuffer->DVD()->InStillFrame())
    33753378            {
    3376                 mpeg_seq_end_seen = false;
    3377                 decodeStillFrame = false;
    3378                 ringBuffer->DVD()->InStillFrame(false);
    3379             }
     3379                AVStream *curstream = ic->streams[pkt->stream_index];
     3380                if (curstream->codec->codec_type == CODEC_TYPE_VIDEO)
     3381                {
     3382                    mpeg_seq_end_seen = false;
     3383                    decodeStillFrame = false;
     3384                    ringBuffer->DVD()->InStillFrame(false);
     3385                }
     3386             }
    33803387
    33813388            if (waitingForChange && pkt->pos >= readAdjust)
    33823389                FileChanged();