Skip to content

bmdplay.cpp setting connections #103

@sbelet

Description

@sbelet

This is may not an issue, more like something odd I'd like to report.

in bmdplay.cpp, lines 535-557

``
//XXX make it generic

switch (connection) {  
case 1:  
    DECKLINK_SET_VIDEO_CONNECTION(bmdVideoConnectionComposite);  
    DECKLINK_SET_AUDIO_CONNECTION(bmdAudioConnectionAnalog);  
    break;  
case 2:  
    DECKLINK_SET_VIDEO_CONNECTION(bmdVideoConnectionComponent);  
    DECKLINK_SET_AUDIO_CONNECTION(bmdAudioConnectionAnalog);  
    break;  
case 3:  
    DECKLINK_SET_VIDEO_CONNECTION(bmdVideoConnectionHDMI);  
    DECKLINK_SET_AUDIO_CONNECTION(bmdAudioConnectionEmbedded);  
    break;  
case 4:  
    DECKLINK_SET_VIDEO_CONNECTION(bmdVideoConnectionSDI);  
    DECKLINK_SET_AUDIO_CONNECTION(bmdAudioConnectionEmbedded);  
    break;  
default:  
    // do not change it  
    break;  
}  

``

The thing is (what I think odd is), same DECKLINK_SET_VIDEO/AUDIO_CONNECTION macro also used in bmdcapture (input). and macro expands to INPUT connections not OUTPUT.

Yes, bmdplay works at least in our cases. I just wanted to report because I don't quite understand whats going on.

Regards.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions