mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
decklinkaudiosrc: Fix compilation on OSX
15:18:47 gstdecklinkaudiosrc.cpp:745:45: error: cannot initialize a parameter of type 'int64_t *' (aka 'long long *') with an rvalue of type 'gint64 *' (aka 'long *') 15:18:47 (BMDDeckLinkMaximumAudioChannels, &self->channels_found); 15:18:47 ^~~~~~~~~~~~~~~~~~~~~ 15:18:47 ./linux/DeckLinkAPI.h:970:87: note: passing argument to parameter 'value' here 15:18:47 virtual HRESULT GetInt (/* in */ BMDDeckLinkAttributeID cfgID, /* out */ int64_t *value) = 0; 15:18:47 ^
This commit is contained in:
parent
9e4e447ad4
commit
81b20f15fc
1 changed files with 5 additions and 1 deletions
|
@ -741,8 +741,12 @@ gst_decklink_audio_src_open (GstDecklinkAudioSrc * self)
|
|||
self->channels_found = self->channels;
|
||||
} else {
|
||||
if (self->input->attributes) {
|
||||
int64_t channels_found;
|
||||
|
||||
HRESULT ret = self->input->attributes->GetInt
|
||||
(BMDDeckLinkMaximumAudioChannels, &self->channels_found);
|
||||
(BMDDeckLinkMaximumAudioChannels, &channels_found);
|
||||
self->channels_found = channels_found;
|
||||
|
||||
/* Sometimes the card may report an invalid number of channels. In
|
||||
* that case, we should (empirically) use 8. */
|
||||
if (ret != S_OK ||
|
||||
|
|
Loading…
Reference in a new issue