comparison libvo/vo_vdpau.c @ 28992:947ef23ba798

Test if create_vdp_decoder() might succeed by calling it from config() with a small value for max_reference_frames. This does not make automatic recovery by using software decoder possible, but lets MPlayer fail more graciously on - actually existing - buggy hardware that does not support certain H264 widths when using hardware accelerated decoding (784, 864, 944, 1024, 1808, 1888 pixels on NVIDIA G98) and if the user tries to hardware-decode more samples at the same time than supported. Might break playback of H264 Intra-Only samples on hardware with very little video memory.
author cehoyos
date Sat, 21 Mar 2009 20:11:05 +0000
parents 8cf16b1d8dde
children 56d2b2886a28
comparison
equal deleted inserted replaced
28991:8cf16b1d8dde 28992:947ef23ba798
593 return -1; 593 return -1;
594 594
595 surface_num = 0; 595 surface_num = 0;
596 vid_surface_num = -1; 596 vid_surface_num = -1;
597 resize(); 597 resize();
598
599 if (!create_vdp_decoder(2))
600 return -1;
598 601
599 return 0; 602 return 0;
600 } 603 }
601 604
602 static void check_events(void) 605 static void check_events(void)