2013-07-30 09:20:43 +00:00
|
|
|
/* GStreamer
|
2013-08-28 19:58:11 +00:00
|
|
|
*
|
|
|
|
* Copyright (C) 2013 Collabora Ltd.
|
|
|
|
* Author: Vincent Penquerc'h <vincent.penquerch@collabora.co.uk>
|
2013-07-30 09:20:43 +00:00
|
|
|
*
|
2013-08-14 19:30:39 +00:00
|
|
|
* gst-validate-default-overrides.c - Test overrides
|
2013-07-30 09:20:43 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
2014-05-21 09:50:09 +00:00
|
|
|
#include <gst/validate/gst-validate-override.h>
|
|
|
|
#include <gst/validate/gst-validate-override-registry.h>
|
|
|
|
#include <gst/validate/gst-validate-report.h>
|
2013-07-30 09:20:43 +00:00
|
|
|
|
2013-08-16 13:05:54 +00:00
|
|
|
/* public symbol */
|
2018-09-06 11:59:24 +00:00
|
|
|
GST_PLUGIN_EXPORT int gst_validate_create_overrides (void);
|
2013-08-16 13:05:54 +00:00
|
|
|
|
2013-07-30 09:20:43 +00:00
|
|
|
int
|
2013-08-14 19:30:39 +00:00
|
|
|
gst_validate_create_overrides (void)
|
2013-07-30 09:20:43 +00:00
|
|
|
{
|
2013-08-14 19:30:39 +00:00
|
|
|
GstValidateOverride *o;
|
2013-07-30 09:20:43 +00:00
|
|
|
|
|
|
|
/* Some random test override. Will moan on:
|
|
|
|
gst-launch videotestsrc num-buffers=10 ! video/x-raw-yuv ! fakesink */
|
2013-08-14 19:30:39 +00:00
|
|
|
o = gst_validate_override_new ();
|
|
|
|
gst_validate_override_change_severity (o,
|
2014-10-02 13:34:28 +00:00
|
|
|
g_quark_from_string ("caps::is-missing-field"),
|
2013-08-14 19:30:39 +00:00
|
|
|
GST_VALIDATE_REPORT_LEVEL_CRITICAL);
|
|
|
|
gst_validate_override_register_by_name ("capsfilter0", o);
|
2016-05-24 14:04:50 +00:00
|
|
|
g_object_unref (o);
|
2013-07-30 09:20:43 +00:00
|
|
|
return 1;
|
|
|
|
}
|