summaryrefslogtreecommitdiff
path: root/libavdevice/avdevice.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-10-29 14:40:38 -0300
committerJames Almer <jamrial@gmail.com>2017-10-29 14:42:48 -0300
commit2245476e5c451552f8f32a4a881f6b4968898a47 (patch)
tree0fe4769926f0e9310d99077d64a41d3baf4249d0 /libavdevice/avdevice.c
parent5cc5130c813fd89e5a8b998e504908ef36bed0f1 (diff)
avdevice: remove usage of deprecated setter and getter functions
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavdevice/avdevice.c')
-rw-r--r--libavdevice/avdevice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavdevice/avdevice.c b/libavdevice/avdevice.c
index 01c46924d1..72e1b67887 100644
--- a/libavdevice/avdevice.c
+++ b/libavdevice/avdevice.c
@@ -135,9 +135,9 @@ int avdevice_app_to_dev_control_message(struct AVFormatContext *s, enum AVAppToD
int avdevice_dev_to_app_control_message(struct AVFormatContext *s, enum AVDevToAppMessageType type,
void *data, size_t data_size)
{
- if (!av_format_get_control_message_cb(s))
+ if (!s->control_message_cb)
return AVERROR(ENOSYS);
- return av_format_get_control_message_cb(s)(s, type, data, data_size);
+ return s->control_message_cb(s, type, data, data_size);
}
int avdevice_capabilities_create(AVDeviceCapabilitiesQuery **caps, AVFormatContext *s,