Skip to content

Commit

Permalink
avdevice: Use av_format_get_control_message_cb()
Browse files Browse the repository at this point in the history
This is required as the location of this field could change and is
specified in libavformat not avdevice

Signed-off-by: Michael Niedermayer <[email protected]>
  • Loading branch information
michaelni committed Jan 16, 2015
1 parent 4184d34 commit ba97cf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libavdevice/avdevice.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 (!s->control_message_cb)
if (!av_format_get_control_message_cb(s))
return AVERROR(ENOSYS);
return s->control_message_cb(s, type, data, data_size);
return av_format_get_control_message_cb(s)(s, type, data, data_size);
}

int avdevice_capabilities_create(AVDeviceCapabilitiesQuery **caps, AVFormatContext *s,
Expand Down

0 comments on commit ba97cf2

Please sign in to comment.