/usr/include/gstreamermm-1.0/gstreamermm/check.h is in libgstreamermm-1.0-dev 1.4.3+dfsg-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | /*
* check.h
*
* Created on: 3 sie 2013
* Author: loganek
*/
#ifndef _GSTREAMERMM_CHECK_H
#define _GSTREAMERMM_CHECK_H
#include <glibmm/threads.h>
#include <glibmm/ustring.h>
#include <gstreamermm/element.h>
#include <gstreamermm/pad.h>
#include <gstreamermm/caps.h>
#include <gstreamermm/buffer.h>
#include <stdexcept>
#define THROW_IF(condition, message) \
if (condition) \
throw Exception(message);
namespace Gst
{
class Exception : std::runtime_error
{
public:
Exception(const std::string& message)
: std::runtime_error(message)
{}
};
class Check
{
class _Check
{
public:
/**
* Setup an element.
*
* @param factory Factory.
* @return a new element.
* @throw Gst::Exception if creating element fails.
*/
Glib::RefPtr<Gst::Element> setup_element (const Glib::ustring& factory);
/**
* Compare two caps with.
*
* @param caps1 First caps to compare.
* @param caps2: Second caps to compare.
* @throw Gst::Exception if caps are not equal.
*/
void caps_equal (Glib::RefPtr<Gst::Caps> caps1, Glib::RefPtr<Gst::Caps> caps2);
};
Check();
Check(const Check&);
Check& operator=(const Check&);
virtual ~Check(){}
public:
static _Check& Instance()
{
static _Check instance;
return instance;
}
};
}
#endif
|