mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-23 09:04:15 +00:00
decklink: properly set up analog input
This commit is contained in:
parent
ae49fa1f78
commit
ab1e013bb8
1 changed files with 21 additions and 0 deletions
|
@ -439,6 +439,27 @@ gst_decklink_src_start (GstElement * element)
|
||||||
GST_ERROR ("set configuration (input source)");
|
GST_ERROR ("set configuration (input source)");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (decklinksrc->connection == GST_DECKLINK_CONNECTION_COMPOSITE) {
|
||||||
|
ret = config->SetInt (bmdDeckLinkConfigAnalogVideoInputFlags,
|
||||||
|
bmdAnalogVideoFlagCompositeSetup75);
|
||||||
|
if (ret != S_OK) {
|
||||||
|
GST_ERROR ("set configuration (composite setup)");
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (decklinksrc->connection == GST_DECKLINK_CONNECTION_COMPOSITE ||
|
||||||
|
decklinksrc->connection == GST_DECKLINK_CONNECTION_COMPONENT ||
|
||||||
|
decklinksrc->connection == GST_DECKLINK_CONNECTION_SVIDEO) {
|
||||||
|
ret = config->SetInt (bmdDeckLinkConfigAudioInputConnection,
|
||||||
|
bmdAudioConnectionAnalog);
|
||||||
|
if (ret != S_OK) {
|
||||||
|
GST_ERROR ("set configuration (audio input connection)");
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
ret = decklinksrc->input->GetDisplayModeIterator (&mode_iterator);
|
ret = decklinksrc->input->GetDisplayModeIterator (&mode_iterator);
|
||||||
if (ret != S_OK) {
|
if (ret != S_OK) {
|
||||||
|
|
Loading…
Reference in a new issue