lavd/avdevice: fix buildbreak when included to C++ code
authorLukasz Marek <lukasz.m.luki2@gmail.com>
Sat, 12 Apr 2014 19:14:21 +0000 (21:14 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 13 Apr 2014 02:59:35 +0000 (04:59 +0200)
class is reserved keyword in C++ and compilator complains about that variable.

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavdevice/avdevice.h

index 1d9de91..6085eb4 100644 (file)
@@ -344,7 +344,7 @@ int avdevice_dev_to_app_control_message(struct AVFormatContext *s,
  * to implement capabilities probing API based on AVOption API. Should not be used directly.
  */
 typedef struct AVDeviceCapabilitiesQuery {
-    const AVClass *class;
+    const AVClass *av_class;
     AVFormatContext *device_context;
     enum AVCodecID codec;
     enum AVSampleFormat sample_format;