PureBasic Forum
https://www.purebasic.fr/english/

Bug in MovieInfo()?
https://www.purebasic.fr/english/viewtopic.php?f=4&t=8501
Page 1 of 1

Author:  nicolaus [ Wed Nov 26, 2003 10:10 am ]
Post subject:  Bug in MovieInfo()?

Hello Fred

first sorry for my bad englisch :lol:
Now i have a problem with MovieInfo().

If MovieInfo() in the Repeat-Loop is the video is not playing and the program crasht.

here is a litle code for testing.

Code:
If InitMovie() = 0
  MessageRequester("Error", "Can't initialize movie playback !", 0)
  End
EndIf
Declare Info()
    Procedure Info()
    StartDrawing(WindowOutput())
    DrawingMode(1)
    Locate(0,0)
    FrontColor(0,255,0)
    DrawText(Str(MovieInfo(0)))
    StopDrawing()
    EndProcedure

MovieName$ = OpenFileRequester("Choose the movie to play", "", "Movie/Audio files|*.avi;*.mp?;*.wmv;*.asf;*.wav|All Files|*.*", 0)
If MovieName$
  If LoadMovie(0, MovieName$)
;   MessageRequester("",Str(MovieInfo(0)),0)
;   MessageRequester("",Str(MovieLength()),0)
    OpenWindow(0, 100, 150, MovieWidth(), MovieHeight(), #PB_Window_SystemMenu, "PureBasic - Movie")
   
    PlayMovie(0, WindowID())
    Repeat
    Info()
    Until WaitWindowEvent() = #PB_EventCloseWindow
  Else
    MessageRequester("Error", "Can't load the movie...", 0)
  EndIf
EndIf


Is this a error form my or from PureBasic?

THX Nico

Author:  Fred [ Wed Nov 26, 2003 8:00 pm ]
Post subject: 

I just tried and it doesn't crash with the few clips played. The only thing is the movie is played under a gray mask because you write directly on the window.. Can anyone confirm ?

Author:  techjunkie [ Thu Nov 27, 2003 2:42 am ]
Post subject: 

Fred wrote:
Can anyone confirm ?


It hangs for me too - and I got the following error message from DirectShow,


Code:
ASSERT Failed
At line 252 of d:\builds\nt32_chk\multimedia\dshow\filters\core\control\seeking.cpp



Then I got another,

Code:
ASSERT Failed
g_cFGObjects == 0
At line 5868 of d:\builds\nt32_chk\multimedia\dshow\filters\core\filgraph\filgraph.cpp



I run WinXP Pro SP1 with Visual.NET 2003 and DirectX 9.0 SDK (debug option installed).

Cheers!

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/