Ticket #2716: subtitle_not_displaying.diff
File subtitle_not_displaying.diff, 1.2 KB (added by , 19 years ago) |
---|
-
DVDRingBuffer.cpp
701 709 if (buf_size < 4) 702 710 return false; 703 711 712 bool force_subtitle_display = false; 704 713 sub->rects = NULL; 705 714 sub->num_rects = 0; 706 715 sub->start_display_time = 0; … … 721 730 switch(cmd) 722 731 { 723 732 case 0x00: 733 force_subtitle_display = true; 724 734 break; 725 735 case 0x01: 726 736 sub->start_display_time = (date << 10) / 90; … … 837 849 cmd_pos = next_cmd_pos; 838 850 } 839 851 if (sub->num_rects > 0) 852 { 853 if (parent && curSubtitleTrack == -1 && !IsInMenu()) 854 { 855 uint captionmode = parent->GetCaptionMode(); 856 if (force_subtitle_display && captionmode != kDisplayAVSubtitle) 857 parent->SetCaptionsEnabled(true, false); 858 else if (!force_subtitle_display && captionmode == kDisplayAVSubtitle) 859 parent->SetCaptionsEnabled(false, false); 860 } 840 861 return true; 862 } 841 863 fail: 842 864 return false; 843 865 }