{"action":"created","comment":{"url":"https://api.github.com/repos/mpv-player/mpv/pulls/comments/37466420","id":37466420,"diff_hunk":"@@ -127,6 +127,14 @@ static bool egl_create_context(struct vo_wayland_state *wl,\n     return true;\n }\n \n+static bool frame_pending = false;","path":"video/out/gl_wayland.c","position":4,"original_position":4,"commit_id":"571b955465dcfd3521b5ea4f908c253edcdd4614","original_commit_id":"571b955465dcfd3521b5ea4f908c253edcdd4614","user":{"login":"wm4","id":1387750,"avatar_url":"https://avatars.githubusercontent.com/u/1387750?v=3","gravatar_id":"","url":"https://api.github.com/users/wm4","html_url":"https://github.com/wm4","followers_url":"https://api.github.com/users/wm4/followers","following_url":"https://api.github.com/users/wm4/following{/other_user}","gists_url":"https://api.github.com/users/wm4/gists{/gist_id}","starred_url":"https://api.github.com/users/wm4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wm4/subscriptions","organizations_url":"https://api.github.com/users/wm4/orgs","repos_url":"https://api.github.com/users/wm4/repos","events_url":"https://api.github.com/users/wm4/events{/privacy}","received_events_url":"https://api.github.com/users/wm4/received_events","type":"User","site_admin":false},"body":"No global mutable state in mpv.","created_at":"2015-08-19T20:51:57Z","updated_at":"2015-08-19T20:51:57Z","html_url":"https://github.com/mpv-player/mpv/pull/2232#discussion_r37466420","pull_request_url":"https://api.github.com/repos/mpv-player/mpv/pulls/2232","_links":{"self":{"href":"https://api.github.com/repos/mpv-player/mpv/pulls/comments/37466420"},"html":{"href":"https://github.com/mpv-player/mpv/pull/2232#discussion_r37466420"},"pull_request":{"href":"https://api.github.com/repos/mpv-player/mpv/pulls/2232"}}},"pull_request":{"url":"https://api.github.com/repos/mpv-player/mpv/pulls/2232","id":42862432,"html_url":"https://github.com/mpv-player/mpv/pull/2232","diff_url":"https://github.com/mpv-player/mpv/pull/2232.diff","patch_url":"https://github.com/mpv-player/mpv/pull/2232.patch","issue_url":"https://api.github.com/repos/mpv-player/mpv/issues/2232","number":2232,"state":"open","locked":false,"title":"vo_wayland: Fix stuttering playback","user":{"login":"Cloudef","id":480330,"avatar_url":"https://avatars.githubusercontent.com/u/480330?v=3","gravatar_id":"","url":"https://api.github.com/users/Cloudef","html_url":"https://github.com/Cloudef","followers_url":"https://api.github.com/users/Cloudef/followers","following_url":"https://api.github.com/users/Cloudef/following{/other_user}","gists_url":"https://api.github.com/users/Cloudef/gists{/gist_id}","starred_url":"https://api.github.com/users/Cloudef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cloudef/subscriptions","organizations_url":"https://api.github.com/users/Cloudef/orgs","repos_url":"https://api.github.com/users/Cloudef/repos","events_url":"https://api.github.com/users/Cloudef/events{/privacy}","received_events_url":"https://api.github.com/users/Cloudef/received_events","type":"User","site_admin":false},"body":"Implements small api for vo_wayland to request and wait for frame callbacks.\r\nUses eglSwapInterval(0) in vo_opengl so we can avoid dropping frames and avoid refactoring rendering to be asynchronous. This effectively disables blocking for frame callback inside mesa and instead just makes compositor use more buffers (?). However we wait for frame callback ourself on gl_wayland as well, to avoid possible overhead to compositor.\r\n\r\n- Fixes issue #2227 \r\n- Reverts some changes done in #1711 that originally introduced this behaviour.\r\n\r\n","created_at":"2015-08-19T20:50:33Z","updated_at":"2015-08-19T20:51:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"186cec07363611abe593380fe209d08dd169dca4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mpv-player/mpv/pulls/2232/commits","review_comments_url":"https://api.github.com/repos/mpv-player/mpv/pulls/2232/comments","review_comment_url":"https://api.github.com/repos/mpv-player/mpv/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mpv-player/mpv/issues/2232/comments","statuses_url":"https://api.github.com/repos/mpv-player/mpv/statuses/571b955465dcfd3521b5ea4f908c253edcdd4614","head":{"label":"Cloudef:fix/wayland","ref":"fix/wayland","sha":"571b955465dcfd3521b5ea4f908c253edcdd4614","user":{"login":"Cloudef","id":480330,"avatar_url":"https://avatars.githubusercontent.com/u/480330?v=3","gravatar_id":"","url":"https://api.github.com/users/Cloudef","html_url":"https://github.com/Cloudef","followers_url":"https://api.github.com/users/Cloudef/followers","following_url":"https://api.github.com/users/Cloudef/following{/other_user}","gists_url":"https://api.github.com/users/Cloudef/gists{/gist_id}","starred_url":"https://api.github.com/users/Cloudef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cloudef/subscriptions","organizations_url":"https://api.github.com/users/Cloudef/orgs","repos_url":"https://api.github.com/users/Cloudef/repos","events_url":"https://api.github.com/users/Cloudef/events{/privacy}","received_events_url":"https://api.github.com/users/Cloudef/received_events","type":"User","site_admin":false},"repo":{"id":32656378,"name":"mpv","full_name":"Cloudef/mpv","owner":{"login":"Cloudef","id":480330,"avatar_url":"https://avatars.githubusercontent.com/u/480330?v=3","gravatar_id":"","url":"https://api.github.com/users/Cloudef","html_url":"https://github.com/Cloudef","followers_url":"https://api.github.com/users/Cloudef/followers","following_url":"https://api.github.com/users/Cloudef/following{/other_user}","gists_url":"https://api.github.com/users/Cloudef/gists{/gist_id}","starred_url":"https://api.github.com/users/Cloudef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cloudef/subscriptions","organizations_url":"https://api.github.com/users/Cloudef/orgs","repos_url":"https://api.github.com/users/Cloudef/repos","events_url":"https://api.github.com/users/Cloudef/events{/privacy}","received_events_url":"https://api.github.com/users/Cloudef/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Cloudef/mpv","description":"Video player based on MPlayer/mplayer2","fork":true,"url":"https://api.github.com/repos/Cloudef/mpv","forks_url":"https://api.github.com/repos/Cloudef/mpv/forks","keys_url":"https://api.github.com/repos/Cloudef/mpv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Cloudef/mpv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Cloudef/mpv/teams","hooks_url":"https://api.github.com/repos/Cloudef/mpv/hooks","issue_events_url":"https://api.github.com/repos/Cloudef/mpv/issues/events{/number}","events_url":"https://api.github.com/repos/Cloudef/mpv/events","assignees_url":"https://api.github.com/repos/Cloudef/mpv/assignees{/user}","branches_url":"https://api.github.com/repos/Cloudef/mpv/branches{/branch}","tags_url":"https://api.github.com/repos/Cloudef/mpv/tags","blobs_url":"https://api.github.com/repos/Cloudef/mpv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Cloudef/mpv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Cloudef/mpv/git/refs{/sha}","trees_url":"https://api.github.com/repos/Cloudef/mpv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Cloudef/mpv/statuses/{sha}","languages_url":"https://api.github.com/repos/Cloudef/mpv/languages","stargazers_url":"https://api.github.com/repos/Cloudef/mpv/stargazers","contributors_url":"https://api.github.com/repos/Cloudef/mpv/contributors","subscribers_url":"https://api.github.com/repos/Cloudef/mpv/subscribers","subscription_url":"https://api.github.com/repos/Cloudef/mpv/subscription","commits_url":"https://api.github.com/repos/Cloudef/mpv/commits{/sha}","git_commits_url":"https://api.github.com/repos/Cloudef/mpv/git/commits{/sha}","comments_url":"https://api.github.com/repos/Cloudef/mpv/comments{/number}","issue_comment_url":"https://api.github.com/repos/Cloudef/mpv/issues/comments{/number}","contents_url":"https://api.github.com/repos/Cloudef/mpv/contents/{+path}","compare_url":"https://api.github.com/repos/Cloudef/mpv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Cloudef/mpv/merges","archive_url":"https://api.github.com/repos/Cloudef/mpv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Cloudef/mpv/downloads","issues_url":"https://api.github.com/repos/Cloudef/mpv/issues{/number}","pulls_url":"https://api.github.com/repos/Cloudef/mpv/pulls{/number}","milestones_url":"https://api.github.com/repos/Cloudef/mpv/milestones{/number}","notifications_url":"https://api.github.com/repos/Cloudef/mpv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Cloudef/mpv/labels{/name}","releases_url":"https://api.github.com/repos/Cloudef/mpv/releases{/id}","created_at":"2015-03-22T00:54:48Z","updated_at":"2015-03-22T00:54:52Z","pushed_at":"2015-08-19T20:04:07Z","git_url":"git://github.com/Cloudef/mpv.git","ssh_url":"git@github.com:Cloudef/mpv.git","clone_url":"https://github.com/Cloudef/mpv.git","svn_url":"https://github.com/Cloudef/mpv","homepage":"http://mpv.io","size":67128,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mpv-player:master","ref":"master","sha":"3bceb37b0618bc5b1a95272dfca01c808d8909ed","user":{"login":"mpv-player","id":2550273,"avatar_url":"https://avatars.githubusercontent.com/u/2550273?v=3","gravatar_id":"","url":"https://api.github.com/users/mpv-player","html_url":"https://github.com/mpv-player","followers_url":"https://api.github.com/users/mpv-player/followers","following_url":"https://api.github.com/users/mpv-player/following{/other_user}","gists_url":"https://api.github.com/users/mpv-player/gists{/gist_id}","starred_url":"https://api.github.com/users/mpv-player/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpv-player/subscriptions","organizations_url":"https://api.github.com/users/mpv-player/orgs","repos_url":"https://api.github.com/users/mpv-player/repos","events_url":"https://api.github.com/users/mpv-player/events{/privacy}","received_events_url":"https://api.github.com/users/mpv-player/received_events","type":"Organization","site_admin":false},"repo":{"id":6201092,"name":"mpv","full_name":"mpv-player/mpv","owner":{"login":"mpv-player","id":2550273,"avatar_url":"https://avatars.githubusercontent.com/u/2550273?v=3","gravatar_id":"","url":"https://api.github.com/users/mpv-player","html_url":"https://github.com/mpv-player","followers_url":"https://api.github.com/users/mpv-player/followers","following_url":"https://api.github.com/users/mpv-player/following{/other_user}","gists_url":"https://api.github.com/users/mpv-player/gists{/gist_id}","starred_url":"https://api.github.com/users/mpv-player/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpv-player/subscriptions","organizations_url":"https://api.github.com/users/mpv-player/orgs","repos_url":"https://api.github.com/users/mpv-player/repos","events_url":"https://api.github.com/users/mpv-player/events{/privacy}","received_events_url":"https://api.github.com/users/mpv-player/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mpv-player/mpv","description":"Video player based on MPlayer/mplayer2","fork":false,"url":"https://api.github.com/repos/mpv-player/mpv","forks_url":"https://api.github.com/repos/mpv-player/mpv/forks","keys_url":"https://api.github.com/repos/mpv-player/mpv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mpv-player/mpv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mpv-player/mpv/teams","hooks_url":"https://api.github.com/repos/mpv-player/mpv/hooks","issue_events_url":"https://api.github.com/repos/mpv-player/mpv/issues/events{/number}","events_url":"https://api.github.com/repos/mpv-player/mpv/events","assignees_url":"https://api.github.com/repos/mpv-player/mpv/assignees{/user}","branches_url":"https://api.github.com/repos/mpv-player/mpv/branches{/branch}","tags_url":"https://api.github.com/repos/mpv-player/mpv/tags","blobs_url":"https://api.github.com/repos/mpv-player/mpv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mpv-player/mpv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mpv-player/mpv/git/refs{/sha}","trees_url":"https://api.github.com/repos/mpv-player/mpv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mpv-player/mpv/statuses/{sha}","languages_url":"https://api.github.com/repos/mpv-player/mpv/languages","stargazers_url":"https://api.github.com/repos/mpv-player/mpv/stargazers","contributors_url":"https://api.github.com/repos/mpv-player/mpv/contributors","subscribers_url":"https://api.github.com/repos/mpv-player/mpv/subscribers","subscription_url":"https://api.github.com/repos/mpv-player/mpv/subscription","commits_url":"https://api.github.com/repos/mpv-player/mpv/commits{/sha}","git_commits_url":"https://api.github.com/repos/mpv-player/mpv/git/commits{/sha}","comments_url":"https://api.github.com/repos/mpv-player/mpv/comments{/number}","issue_comment_url":"https://api.github.com/repos/mpv-player/mpv/issues/comments{/number}","contents_url":"https://api.github.com/repos/mpv-player/mpv/contents/{+path}","compare_url":"https://api.github.com/repos/mpv-player/mpv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mpv-player/mpv/merges","archive_url":"https://api.github.com/repos/mpv-player/mpv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mpv-player/mpv/downloads","issues_url":"https://api.github.com/repos/mpv-player/mpv/issues{/number}","pulls_url":"https://api.github.com/repos/mpv-player/mpv/pulls{/number}","milestones_url":"https://api.github.com/repos/mpv-player/mpv/milestones{/number}","notifications_url":"https://api.github.com/repos/mpv-player/mpv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mpv-player/mpv/labels{/name}","releases_url":"https://api.github.com/repos/mpv-player/mpv/releases{/id}","created_at":"2012-10-13T08:08:44Z","updated_at":"2015-08-19T19:45:35Z","pushed_at":"2015-08-19T20:50:34Z","git_url":"git://github.com/mpv-player/mpv.git","ssh_url":"git@github.com:mpv-player/mpv.git","clone_url":"https://github.com/mpv-player/mpv.git","svn_url":"https://github.com/mpv-player/mpv","homepage":"http://mpv.io","size":99859,"stargazers_count":2131,"watchers_count":2131,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":287,"mirror_url":null,"open_issues_count":119,"forks":287,"open_issues":119,"watchers":2131,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mpv-player/mpv/pulls/2232"},"html":{"href":"https://github.com/mpv-player/mpv/pull/2232"},"issue":{"href":"https://api.github.com/repos/mpv-player/mpv/issues/2232"},"comments":{"href":"https://api.github.com/repos/mpv-player/mpv/issues/2232/comments"},"review_comments":{"href":"https://api.github.com/repos/mpv-player/mpv/pulls/2232/comments"},"review_comment":{"href":"https://api.github.com/repos/mpv-player/mpv/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mpv-player/mpv/pulls/2232/commits"},"statuses":{"href":"https://api.github.com/repos/mpv-player/mpv/statuses/571b955465dcfd3521b5ea4f908c253edcdd4614"}}}}