Page 1 of 1

VLCEventManager problem

Posted: 08 Jan 2015 09:54
by xuluming
Crash:
In VLCEventManager.m
- (void)callObjectMethodWithArgs:(NSData*)data
{
message_t * message = (message_t *)[data bytes];

// Check that we were not cancelled
if ([self markMessageHandledOnMainThreadIfExists:data]) {
void (*method)(id, SEL, id) = (void (*)(id, SEL, id))[message->target methodForSelector: message->sel];
method(message->target, message->sel, message->u.object);
}

[message->u.object release];
[data release];
}

method(message->target, message->sel, message->u.object); -------------------------->EXC_BAD_ACCESS


Hello,I am a developer of IOS:
when I switch video url to change TV program,the problem occurs frequently,I have confused about this for a long time and I don't know what to do,this is my code,very simple:
when I switch the video url,I create a new VLCMedia giving to player.media

NSURL *url=[NSURL URLWithString:staticUrl];

VLCMedia *media=[[VLCMedia alloc]initWithURL:url];

[media addOptions:mediaOptions];

[player stop];
player.media=media;

[player play];

I want to ask how to solve this problem by myself or next version of IOS will fix this problem? Thanks!!!