26 May '13 - 05:35 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: BUG in BASS_WMA_EncodeOpenPublish  (Read 1041 times)
Valerio
Posts: 25


« on: 9 Oct '09 - 15:49 »
Reply with quoteQuote

there's a bug in BASS_WMA_EncodeOpenPublish.

Calling BASS_WMA_EncodeOpenPublish on a publishing point and afterwards calling another time this function on another publishing point, made the second encoder (that is instantiated correctly) connect on the first publishing point ignoring its settings.

briefly, this code doesn't work:

procedure TForm4.Button4Click(Sender: TObject);
begin
enc := BASS_WMA_EncodeOpenPublish(
    44100,
    2,
    BASS_WMA_ENCODE_SCRIPT or BASS_UNICODE,
    48000,
    pchar('http://www.myserver.com/pp1'),
    pchar('myusername'),
    pchar('mypassword')
);
enc2 := BASS_WMA_EncodeOpenPublish(
    44100,
    2,
    BASS_WMA_ENCODE_SCRIPT or BASS_UNICODE,
    48000,
    pchar('http://www.myserver.com/pp2'),
    pchar('myusername2'),
    pchar('mypassword2')
);
end;

this results in enc2 connect to pp1 instead of pp2.

instead this code works fine:

procedure TForm4.Button2Click(Sender: TObject);
begin
enc := BASS_WMA_EncodeOpenPublish(
    44100,
    2,
    BASS_WMA_ENCODE_SCRIPT or BASS_UNICODE,
    48000,
    pchar('http://www.myserver.com/pp1'),
    pchar('myusername'),
    pchar('mypassword')
);
end;

procedure TForm4.Button3Click(Sender: TObject);
begin
enc2 := BASS_WMA_EncodeOpenPublish(
    44100,
    2,
    BASS_WMA_ENCODE_SCRIPT or BASS_UNICODE,
    48000,
    pchar('http://www.myserver.com/pp2'),
    pchar('myusername2'),
    pchar('mypassword2')
);
end;

pushing first button2 and after button3, every encoder connects to its correct publishing point.

seems there's something "global" inside bass that doesn't have time to reset, or something similar.

----
I'm using the latest version of bass and basswma in delphi 2009
« Last Edit: 9 Oct '09 - 15:54 by Valerio » Logged
Ian @ un4seen
Administrator
Posts: 15276


« Reply #1 on: 12 Oct '09 - 15:26 »
Reply with quoteQuote

That's strange. I can't see any reason for that to happen, so I think I'll have to send you a debug version to get some further info.
Logged
Valerio
Posts: 25


« Reply #2 on: 12 Oct '09 - 16:36 »
Reply with quoteQuote

the error is very simple to reproduce, you can try it by yourself.

However I'll send you the log file
Logged
Valerio
Posts: 25


« Reply #3 on: 13 Oct '09 - 09:40 »
Reply with quoteQuote

Hi,
I noticed a new possible bug:
If you start a WMA encoder in publish mode, when calling "encode close" and starting a new encoder on the same publishing point with any wrong username/password, It reconnects with the old credentials.

I'm very stuck about this.
Logged
Ian @ un4seen
Administrator
Posts: 15276


« Reply #4 on: 13 Oct '09 - 17:16 »
Reply with quoteQuote

Please reproduce that with the debug version too.

Did you receive the debug version that I sent yesterday? If not, please check your spam folder, in case it ended up in there. If it's not there either, I can try 7-Zip'ing it, in case your mail server didn't like the DLL attachment.
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines