diff options
author | Lukasz Marek <lukasz.m.luki@gmail.com> | 2014-01-19 16:11:09 +0100 |
---|---|---|
committer | Lukasz Marek <lukasz.m.luki@gmail.com> | 2014-01-27 15:18:17 +0100 |
commit | 7151411b9cf74ce43ab56f0ff8577b8031b997d9 (patch) | |
tree | be9ee49037847eb427cc8d36d78c96b1bcdc3548 /libavdevice/avdevice.c | |
parent | bceeccc648baf94a02b7b2c53e44bf77a47773ef (diff) | |
download | ffmpeg-streaming-7151411b9cf74ce43ab56f0ff8577b8031b997d9.zip ffmpeg-streaming-7151411b9cf74ce43ab56f0ff8577b8031b997d9.tar.gz |
lavd: add avdevice_app_to_dev_control_message API
New API allows to send messages from application to devices.
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
Diffstat (limited to 'libavdevice/avdevice.c')
-rw-r--r-- | libavdevice/avdevice.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavdevice/avdevice.c b/libavdevice/avdevice.c index b9b18f2..c232bbd 100644 --- a/libavdevice/avdevice.c +++ b/libavdevice/avdevice.c @@ -36,3 +36,11 @@ const char * avdevice_license(void) #define LICENSE_PREFIX "libavdevice license: " return LICENSE_PREFIX FFMPEG_LICENSE + sizeof(LICENSE_PREFIX) - 1; } + +int avdevice_app_to_dev_control_message(struct AVFormatContext *s, enum AVAppToDevMessageType type, + void *data, size_t data_size) +{ + if (!s->oformat || !s->oformat->control_message) + return AVERROR(ENOSYS); + return s->oformat->control_message(s, type, data, data_size); +} |