Menu

#5 Using IMPEG2Demultiplexer.CreateOutputPin()

v1.0_(example)
closed
snarfle
Interface (6)
5
2012-10-29
2005-10-20
gvenkat
No

I am trying to use the untested interface
IMPEG2Demultiplexer.CreateOutputPin(). I get an error
when I do the following code snippet.

IPin VOut = null;
Demux.CreateOutputPin(mt, "Video", out VOut);

I get a "An unhandled exception of
type 'System.ArgumentNullException' occurred in
MDIClient.exe

Additional information: Value cannot be null." on the
Vout declaration. What is the proper usage of this call.

Giri

Discussion

  • snarfle

    snarfle - 2005-10-21

    Logged In: YES
    user_id=1220080

    Works for me:

    IMpeg2Demultiplexer im;
    IPin iPin;
    AMMediaType pmt = new AMMediaType();
    pmt.majorType = MediaType.Video;
    pmt.subType = MediaSubType.MPEG1System;
    
    im = (IMpeg2Demultiplexer)new MPEG2Demultiplexer();
    
    int hr = im.CreateOutputPin(pmt, "asdf", out iPin);
    
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     

Log in to post a comment.

MongoDB Logo MongoDB