* the application.
*/
-#include "config.h"
+#include "gst/vaapi/sysdeps.h"
#include <stdarg.h>
#include <gst/vaapi/gstvaapidecoder.h>
#include <gst/vaapi/gstvaapidecoder_h264.h>
static gboolean
app_run(App *app, int argc, char *argv[])
{
- if (!video_output_init(&argc, argv, g_options)) {
- g_message("failed to initialize video output subsystem");
- return FALSE;
- }
-
if (argc < 2) {
g_message("no bitstream file specified");
return FALSE;
elapsed, (gdouble)app->num_frames / elapsed);
}
g_print("\n");
-
- video_output_exit();
return TRUE;
}
App *app;
gint ret;
+ if (!video_output_init(&argc, argv, g_options))
+ g_error("failed to initialize video output subsystem");
+
app = app_new();
if (!app)
g_error("failed to create application context");
app_free(app);
g_free(g_codec_str);
+ video_output_exit();
return ret;
}