[DSPack]Rendering a 2nd video doesn't work on user pc, but fine on dev. pc



The following code is designed to load a video. It works on the development pc but only the first time on the user pc.

Folder + Filename are correct. This works fine on the development machine.

The user pc is about 3 times faster than the development pc. Both have DirectX 9.0c or later. The same thing occurred when both had exactly the same version of 9.0c.

What's causing this and what is the remedy, if any?

Thanks,
Raymond.

with FilterGraph do
begin
if not Active then
begin
Active := True;
end;

Pause();
Application.ProcessMessages();

Stop();
Application.ProcessMessages();

ClearGraph();
Application.ProcessMessages();

FilenameSP.Caption := Folder + Filename;
try
RenderFile(Folder + Filename);

// ShowMessage('Filename: ' + Folder + Filename);
except
MessageDlg('There is no clip for this ID, which has Volume Number: ' + IntToStr(VN), mtWarning, [mbOk], 0);
Exit;
end;

Application.ProcessMessages();

QueryInterface(IID_IMediaSeeking, MediaSeeking);

with MediaSeeking do
begin
SetTimeFormat(TIME_FORMAT_FRAME);

GetDuration(ClipDuration);

// Load and wait

StartPos := 1;
StopPos := 1;

MediaSeeking.SetPositions(StartPos, AM_SEEKING_AbsolutePositioning, StopPos, AM_SEEKING_AbsolutePositioning);
FilterGraph.Play();

Sleep(500);

StartPos := 1;
StopPos := ClipDuration;

MediaSeeking.SetPositions(StartPos, AM_SEEKING_AbsolutePositioning, StopPos, AM_SEEKING_AbsolutePositioning);

with FilterGraph do
begin
Rate := RateEdit.Value;

Play();
end;
end; {with}
end;
.



Relevant Pages

  • Re: Unable to save using SaveAs
    ... You have shown us the line of code by which you build the filename. ... let's say there are 5 jobs. ... For those that are not familiar with foxpro, I am sure you will be able to ... The first time thru, it works OK, but after this it fails. ...
    (microsoft.public.word.vba.general)
  • Re: Server.Transfer goes to wrong page
    ... long-running pages as a countdown during load. ... it was a client-side redirect, I never caught it in my debugger. ... >>preserveForm), the first time, it loads up BasicReports again. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ASM Cassette Images in TRS-80 Emulator
    ... David Keil's TRS-80 Model III/4/4P emulator. ... One of the progress asterisks changes to a C, and the load prematurely stops. ... Picking apart the *.CAS file that I was trying to load had initially suggested that the filename was "SPWAR" There is other data in the file, of course, but that plaintext seemed like a good guess. ...
    (comp.sys.tandy)
  • How to build a shared object to be loaded at run time?
    ... This is my first time trying to load a dynamic library ... fprintf (stderr, "%s\n", dlerror()); ...
    (comp.unix.programmer)
  • Re: Loading of a Live CD stops?
    ... This is a further complicated situation because I know that the CD worked in the drive the first time I used it to boot from, then after that, it has always given me the error I reported. ... Kailesh MUSSAI wrote: The error seems to be that modprobe is not able to load the module ... I get it when I try to load an Ubuntu v7.10 Live CD. ...
    (Ubuntu)