[BUG] Yet another update to the MPEG source

John M McIntosh johnmci at smalltalkconsulting.com
Tue Nov 21 21:44:39 UTC 2000


Find it at

http://www.smalltalkconsulting.com/html/mpeg3source.html


What this fixes is an interesting problem for which I don't know the 
correct solution let. If you have

videoFrameHeight: aStream
	"Returns video frame height, -1 if error "
	^[self primVideoHeight: self fileHandle stream: aStream] on: 
Error do: [-1]

and

videoFrameWidth: aStream
	"Returns video frame width, -1 if error"
	^[self primVideoWidth: self fileHandle stream: aStream] on: 
Error do: [-1]


and

playWhatEver: aPath
	| whatIsThis |
	whatIsThis _ MPEGFile openFile: aPath.
	self playMPEG:aPath
		video:(whatIsThis hasVideo)
		audio:(whatIsThis hasAudio)
		x:(whatIsThis videoFrameWidth:0)
		y:(whatIsThis videoFrameHeight:0)


where the file of interest is a audio only file. Then the exception 
handler for videoFrameWidth is triggered but for some reason the 
whatIsThis videoFrameHeight:0 does not execute neither does the 
playMPEG:video:audio:x:y: and it sliently does nothing....

If you execute it in the debugger, it of course works just fine. If 
you attempt to step then the debugger breaks...

Perhaps someone who has time could look into why the exception 
handlers here sliently stop the code from executing...

PS this is in a 2.9Alpha4Vm with changeSet 2938
-- 
--
===========================================================================
John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================
Custom Macintosh programming & various Smalltalk dialects
PGP Key: DSS/Diff/46FC3BE6
Fingerprint=B22F 7D67 92B7 5D52 72D7  E94A EE69 2D21 46FC 3BE6
===========================================================================





More information about the Squeak-dev mailing list