{"action":"opened","issue":{"url":"https://api.github.com/repos/JvanKatwijk/dab-cmdline/issues/47","repository_url":"https://api.github.com/repos/JvanKatwijk/dab-cmdline","labels_url":"https://api.github.com/repos/JvanKatwijk/dab-cmdline/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/JvanKatwijk/dab-cmdline/issues/47/comments","events_url":"https://api.github.com/repos/JvanKatwijk/dab-cmdline/issues/47/events","html_url":"https://github.com/JvanKatwijk/dab-cmdline/issues/47","id":347879318,"node_id":"MDU6SXNzdWUzNDc4NzkzMTg=","number":47,"title":"mp2processor class does not initialize ctx member variable","user":{"login":"borine","id":32966433,"node_id":"MDQ6VXNlcjMyOTY2NDMz","avatar_url":"https://avatars3.githubusercontent.com/u/32966433?v=4","gravatar_id":"","url":"https://api.github.com/users/borine","html_url":"https://github.com/borine","followers_url":"https://api.github.com/users/borine/followers","following_url":"https://api.github.com/users/borine/following{/other_user}","gists_url":"https://api.github.com/users/borine/gists{/gist_id}","starred_url":"https://api.github.com/users/borine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borine/subscriptions","organizations_url":"https://api.github.com/users/borine/orgs","repos_url":"https://api.github.com/users/borine/repos","events_url":"https://api.github.com/users/borine/events{/privacy}","received_events_url":"https://api.github.com/users/borine/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-06T11:08:42Z","updated_at":"2018-08-06T11:08:42Z","closed_at":null,"author_association":"NONE","body":"When using the \"UserData\" field in callbacks, I get a segfault playing DAB audio. I found that this is because the userdata pointer i am given in the callback is null.\r\n\r\nIt turns out this is because the constructor in /library/src/backend/audio/mp2processor.cpp does not initialize the ctx member variable of the mp2processor object. By adding\r\nthis->ctx = ctx;\r\nto the constructor body the segfault goes away and I get really faultless audio from the BBC national ensemble in the UK using an RPi 2B+ and a cheap RTL SDR USB device."}}
{"actor":{"display_login":"borine"}}