tests: error out if FFmpeg|codecparsers are not supported.

This commit is contained in:
Gwenole Beauchesne 2012-01-18 10:47:56 +01:00
parent 0f511e1e0b
commit a9f79c9251

View file

@ -158,6 +158,8 @@ main(int argc, char *argv[])
if (g_use_ffmpeg) {
#if USE_FFMPEG
decoder = gst_vaapi_decoder_ffmpeg_new(display, decoder_caps);
#else
g_error("FFmpeg-based decoders are not supported");
#endif
}
else {
@ -173,6 +175,8 @@ main(int argc, char *argv[])
decoder = NULL;
break;
}
#else
g_error("codecparsers-based decoders are not supported");
#endif
}
if (!decoder)