Ticket #2542: ticket_2542_prob2_fix.diff
File ticket_2542_prob2_fix.diff, 1.7 KB (added by , 19 years ago) |
---|
-
libs/libmythtv/avformatdecoder.cpp
1938 1938 GetNVP()->SetVideoParams(awidth, aheight, seqFPS, 1939 1939 keyframedist, aspect, 1940 1940 kScan_Detect); 1941 1942 if (ringBuffer->InDVDMenuOrStillFrame())1943 {1944 ringBuffer->Seek(ringBuffer->DVD()->GetCellStartPos(),1945 SEEK_SET);1946 av_read_frame_flush(ic);1947 }1948 1949 1941 current_width = width; 1950 1942 current_height = height; 1951 1943 current_aspect = aspect; … … 2657 2649 { 2658 2650 int current_width = curstream->codec->width; 2659 2651 int video_width = GetNVP()->GetVideoWidth(); 2660 if (video_width > 0 && video_width != current_width && 2661 !ringBuffer->DVD()->InStillFrame()) 2652 if (video_width > 0 && video_width != current_width) 2662 2653 { 2663 2654 av_free_packet(pkt); 2664 2655 CloseCodecs(); 2665 2656 ScanStreams(false); 2666 2657 allowedquit = true; 2658 if (ringBuffer->DVD()->InStillFrame()) 2659 { 2660 long long cellstartpos = ringBuffer->DVD()->GetCellStartPos(); 2661 ringBuffer->DVD()->Seek(cellstartpos, SEEK_SET); 2662 } 2667 2663 continue; 2668 2664 } 2669 2665 }