VLCEventManager problem

iOS, iPad, iPhone, tvOS specific usage questions
xuluming
New Cone
New Cone
Posts: 2
Joined: 14 Nov 2014 07:44

VLCEventManager problem

Postby xuluming » 08 Jan 2015 09:54

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!!!

Return to “VLC for iOS, iPadOS and Apple TV”

Who is online

Users browsing this forum: No registered users and 12 guests