summaryrefslogtreecommitdiff
path: root/libavdevice
diff options
context:
space:
mode:
authorDevin Heitmueller <dheitmueller@ltnglobal.com>2018-01-08 20:16:56 -0500
committerMarton Balint <cus@passwd.hu>2018-01-20 18:38:29 +0100
commit5409f065f2c48ad9c4baf787d08384176cbc62a4 (patch)
tree342bb2a648b6b86a56fbaf9a6c16b6a40d0f4f3c /libavdevice
parentfc93eca126aa4d68dd37c3e1b9d15bf05565ef04 (diff)
avdevice/decklink: Suppress warning about misuse of struct instead of class
When building with Clang, the following warning is shown: warning: struct 'IDeckLinkVideoFrame' was previously declared as a class [-Wmismatched-tags] The function incorrectly casts IDeckLinkVideoFrame as a struct instead of a class pointer. Signed-off-by: Devin Heitmueller <dheitmueller@ltnglobal.com> Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/decklink_enc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/decklink_enc.cpp b/libavdevice/decklink_enc.cpp
index c06ca4668f..89b03f2bd5 100644
--- a/libavdevice/decklink_enc.cpp
+++ b/libavdevice/decklink_enc.cpp
@@ -321,7 +321,7 @@ static int decklink_write_video_packet(AVFormatContext *avctx, AVPacket *pkt)
pthread_mutex_unlock(&ctx->mutex);
/* Schedule frame for playback. */
- hr = ctx->dlo->ScheduleVideoFrame((struct IDeckLinkVideoFrame *) frame,
+ hr = ctx->dlo->ScheduleVideoFrame((class IDeckLinkVideoFrame *) frame,
pkt->pts * ctx->bmd_tb_num,
ctx->bmd_tb_num, ctx->bmd_tb_den);
/* Pass ownership to DeckLink, or release on failure */