{"action":"created","issue":{"url":"https://api.github.com/repos/mikebrady/shairport-sync/issues/63","labels_url":"https://api.github.com/repos/mikebrady/shairport-sync/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/mikebrady/shairport-sync/issues/63/comments","events_url":"https://api.github.com/repos/mikebrady/shairport-sync/issues/63/events","html_url":"https://github.com/mikebrady/shairport-sync/issues/63","id":61810817,"number":63,"title":"pops pressing pause or changing track from iTunes on Windows","user":{"login":"Hamster128","id":11487536,"avatar_url":"https://avatars.githubusercontent.com/u/11487536?v=3","gravatar_id":"","url":"https://api.github.com/users/Hamster128","html_url":"https://github.com/Hamster128","followers_url":"https://api.github.com/users/Hamster128/followers","following_url":"https://api.github.com/users/Hamster128/following{/other_user}","gists_url":"https://api.github.com/users/Hamster128/gists{/gist_id}","starred_url":"https://api.github.com/users/Hamster128/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hamster128/subscriptions","organizations_url":"https://api.github.com/users/Hamster128/orgs","repos_url":"https://api.github.com/users/Hamster128/repos","events_url":"https://api.github.com/users/Hamster128/events{/privacy}","received_events_url":"https://api.github.com/users/Hamster128/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-15T13:18:17Z","updated_at":"2015-03-18T18:19:48Z","closed_at":null,"body":"the function buffer_get_frame() in player.c has a bug.\r\ncurframe is not initialized which leads to this problem, because if flush_requested==1 the loop is left without setting curframe. Also some checks of curframe after the main loop should be fixed.\r\n\r\nthe second problem is the atoi() funcition in rtsp.c handle_flush(), which returns 0x7fffffff if a value >0x7fffffff is received. This value is interpreted as don`t flush anything and leads to \"pop\" noise.\r\nI have changed the function ot atoll() (atol() ether not working), and changed the special value from 0x7fffffff to 0x0 = flush off, and had no longer any \"pop\" noise\r\n"},"comment":{"url":"https://api.github.com/repos/mikebrady/shairport-sync/issues/comments/83108837","html_url":"https://github.com/mikebrady/shairport-sync/issues/63#issuecomment-83108837","issue_url":"https://api.github.com/repos/mikebrady/shairport-sync/issues/63","id":83108837,"user":{"login":"mikebrady","id":4265913,"avatar_url":"https://avatars.githubusercontent.com/u/4265913?v=3","gravatar_id":"","url":"https://api.github.com/users/mikebrady","html_url":"https://github.com/mikebrady","followers_url":"https://api.github.com/users/mikebrady/followers","following_url":"https://api.github.com/users/mikebrady/following{/other_user}","gists_url":"https://api.github.com/users/mikebrady/gists{/gist_id}","starred_url":"https://api.github.com/users/mikebrady/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikebrady/subscriptions","organizations_url":"https://api.github.com/users/mikebrady/orgs","repos_url":"https://api.github.com/users/mikebrady/repos","events_url":"https://api.github.com/users/mikebrady/events{/privacy}","received_events_url":"https://api.github.com/users/mikebrady/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T18:19:48Z","updated_at":"2015-03-18T18:19:48Z","body":"Thanks – that's interesting; I hadn't come across that unit. Looking at the popping issue now."}}