NewMovieFromProperties will not work with image file
NewMovieFromProperties will not work with image file
- Subject: NewMovieFromProperties will not work with image file
- From: Richard Salvatierra <email@hidden>
- Date: Tue, 7 Mar 2006 14:57:29 -0500
I have an app that creates a MOVIE from NewMovieFromProperties. This
was working fine with a previous version. I have made a lot of
additions to a newer version. The problem is, now when I try to
create a new Movie passing the path of a graphic file (jpg, png,
etc), I get a crash. (quick snippet)
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x000000a7
Thread 0 Crashed:
0 com.apple.QuickTime 0x8fcd9260
NewMovieFromProperties_priv + 3716
1 com.apple.QuickTime 0x8fcd90f8
NewMovieFromProperties_priv + 3356
2 PVPVideoChannel.ob 0x000da890 -[PVPVideoChannel
initWithFileFromPath:forView:] + 828 (PVPVideoChannel.m:118)
The really strange thing is if I first create a Movie passing a video
file path, and then do the same with a graphic file it works fine.
newMovieProperties AND visualContext created using the same code
from LiveVideoMixer
theError = NewMovieFromProperties(sizeof(newMovieProperties) / sizeof
(newMovieProperties[0]), newMovieProperties, 0, nil, &channelMovie);
I know/think the problem occurs when trying to access an object that
has been released. But I do not see what object this is.
If anyone has an idea of what is missing, I would be very grateful.
If you need more info let me know.
-Rich
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden