Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

QTJ 5.0.2 bug? -> DataRef fromMovie()



Hi all,
it seems I have problems with QT 5.0.2
(Win95, JDK 1.1.8)

The following is the shellshot exceptions and is about DataRef.
The point is all works with QTJ 4.0, whilst I have that exception with
5.0.2...
is it a known issue?

I have looked for something similar on previous e-amils on the list and I
think nobody talks about that... I think it is a problem of

<DataRef> DataRef.fromMovie(movie)

but it would be strange nobody notice it...or probably I am the only left
using jdk 1.1.8!
ok, you may have a glance of the exception and of the piece of code (it is
not very short, but I have underlined the line of the exception)

Tnanks
-----------------------------------------

Looking for file: E:\Cineteca\Film-big\Platform\Ariane\arihi1.avi...
Volume abbassato a traccia: 2
Looking for soundtrack...
Exception occurred during event dispatching:
quicktime.QTNullPointerException: The QT native object represented by this
QTJav
a object is not valid:quicktime.std.movies.media.DataRef
at quicktime.QTObject.<init>(QTObject.java:49)
at quicktime.QTObject.<init>(QTObject.java:39)
at quicktime.util.QTHandleRef.<init>(QTHandleRef.java:119)
at quicktime.util.QTHandle.<init>(QTHandle.java:300)
at quicktime.std.movies.media.DataRef.<init>(DataRef.java:252)
at quicktime.std.movies.media.DataRef.fromMovie(DataRef.java:77)
--------------------------------

public class Visualizzatore
extends Frame
implements Errors
{




private Movie
edit (String[] npezzi) {
Movie m, mout;
int offset = 0, i, ii;
int t1=0;

try {
mout = new Movie();

for (ii=0; ii<npezzi.length; ii++) {

m = carica(npezzi[ii]);

m.insertSegment(mout, 0, m.getDuration(), 0+offset);
offset += m.getDuration();

m = null;

} // movie segments loop

Movie msound;

msound = carica(ColSon);

ts = msound.getIndTrack(1);
Track tnew;

>>>>>> DataRef info = DataRef.fromMovie(msound); <<<<<<<<
Exception!!!!!!!

tnew = mout.addEmptyTrack(ts, info);
try {
ts.insertSegment(tnew, 0, mout.getDuration(), 0);
} catch (StdQTException e) {
return null;
}

return mout;

} catch (QTException e) {
System.err.println("QTExc:"+Lab.v.get("Problemi durante il montaggio
del filmato")+":\n" + e);
} catch (IOException e) {
System.err.println("IOExc:"+Lab.v.get("Problemi durante il montaggio
del filmato")+":\n" + e);
}

return null;
} // monta



private static Movie
carica(String nome) throws QTException, IOException
{
String nnn = null, pref = "file://";
File ft;
QTFile ff = null;
DataRef url;


nnn = (new File(nome)).getCanonicalPath();


url = new DataRef(pref+nnn);

Movie m = Movie.fromDataRef(url, StdQTConstants.newMovieActive);

return m;

} // carica


} // Visualizzatore


ing. Stefano Scarpanti
applicazioni multimediali con tecnologia Java

Tel +39 051 639 8018

ISAO CNR - C.Gavazzi Space spa
v. Gobetti 101, 40129
Bologna
Italy




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.