diff options
author | Lukasz Marek <lukasz.m.luki@gmail.com> | 2014-02-22 23:32:51 +0100 |
---|---|---|
committer | Lukasz Marek <lukasz.m.luki@gmail.com> | 2014-03-03 23:34:46 +0100 |
commit | f607767d93b7c277585332f85f9d75ad85221979 (patch) | |
tree | a0f4b76634ff9068426121d7514b957293af44f6 /libavdevice/oss_audio.c | |
parent | 19b3a25048d956622ebcc26b722a0a5c5155553f (diff) | |
download | ffmpeg-streaming-f607767d93b7c277585332f85f9d75ad85221979.zip ffmpeg-streaming-f607767d93b7c277585332f85f9d75ad85221979.tar.gz |
lavd: add categories to device implementations
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
Diffstat (limited to 'libavdevice/oss_audio.c')
-rw-r--r-- | libavdevice/oss_audio.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavdevice/oss_audio.c b/libavdevice/oss_audio.c index 916908c..71bf636 100644 --- a/libavdevice/oss_audio.c +++ b/libavdevice/oss_audio.c @@ -296,6 +296,7 @@ static const AVClass oss_demuxer_class = { .item_name = av_default_item_name, .option = options, .version = LIBAVUTIL_VERSION_INT, + .category = AV_CLASS_CATEGORY_DEVICE_AUDIO_INPUT, }; AVInputFormat ff_oss_demuxer = { @@ -311,6 +312,13 @@ AVInputFormat ff_oss_demuxer = { #endif #if CONFIG_OSS_OUTDEV +static const AVClass oss_muxer_class = { + .class_name = "OSS muxer", + .item_name = av_default_item_name, + .version = LIBAVUTIL_VERSION_INT, + .category = AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT, +}; + AVOutputFormat ff_oss_muxer = { .name = "oss", .long_name = NULL_IF_CONFIG_SMALL("OSS (Open Sound System) playback"), @@ -324,5 +332,6 @@ AVOutputFormat ff_oss_muxer = { .write_packet = audio_write_packet, .write_trailer = audio_write_trailer, .flags = AVFMT_NOFILE, + .priv_class = &oss_muxer_class, }; #endif |