Lines Matching defs:ret
311 int ret = 0;
317 (ret = avdevice_dev_to_app_control_message(h, AV_DEV_TO_APP_PREPARE_WINDOW_BUFFER, NULL , 0)) < 0) {
321 if ((ret = opengl_prepare_vertex(h)) < 0)
323 ret = opengl_draw(h, NULL, 1, 0);
326 return ret;
935 int ret;
939 if ((ret = opengl_sdl_create_window(h)) < 0) {
941 return ret;
952 if ((ret = avdevice_dev_to_app_control_message(h, AV_DEV_TO_APP_CREATE_WINDOW_BUFFER,
955 return ret;
957 if ((ret = avdevice_dev_to_app_control_message(h, AV_DEV_TO_APP_PREPARE_WINDOW_BUFFER, NULL , 0)) < 0) {
959 return ret;
967 int ret;
975 } else if ((ret = avdevice_dev_to_app_control_message(h, AV_DEV_TO_APP_DESTROY_WINDOW_BUFFER, NULL , 0)) < 0) {
977 return ret;
998 int i, ret;
1001 if ((ret = opengl_compile_shaders(opengl, opengl->pix_fmt)) < 0)
1011 ret = AVERROR_EXTERNAL;
1047 ret = AVERROR_EXTERNAL;
1052 return ret;
1060 int ret;
1080 if ((ret = opengl_create_window(h)))
1083 if ((ret = opengl_read_limits(h)) < 0)
1089 ret = AVERROR(EINVAL);
1093 if ((ret = opengl_load_procedures(opengl)) < 0)
1099 if ((ret = opengl_init_context(opengl)) < 0)
1102 if ((ret = opengl_prepare_vertex(h)) < 0)
1112 (ret = avdevice_dev_to_app_control_message(h, AV_DEV_TO_APP_DISPLAY_WINDOW_BUFFER, NULL , 0)) < 0) {
1117 ret = AVERROR_EXTERNAL;
1125 return ret;
1200 int ret;
1203 if (!opengl->no_window && (ret = opengl_sdl_process_events(h)) < 0)
1207 (ret = avdevice_dev_to_app_control_message(h, AV_DEV_TO_APP_PREPARE_WINDOW_BUFFER, NULL , 0)) < 0) {
1225 ret = AVERROR_EXTERNAL;
1228 if ((ret = opengl_prepare(opengl)) < 0)
1240 ret = AVERROR_EXTERNAL;
1248 (ret = avdevice_dev_to_app_control_message(h, AV_DEV_TO_APP_DISPLAY_WINDOW_BUFFER, NULL , 0)) < 0) {
1255 return ret;