Gnash  0.8.10
GstUtil.h
Go to the documentation of this file.
00001 // GstUtil.h: Generalized Gstreamer utilities for pipeline configuration.
00002 // 
00003 //   Copyright (C) 2008, 2009, 2010, 2011, 2012
00004 //   Free Software Foundation, Inc.
00005 // 
00006 // This program is free software; you can redistribute it and/or modify
00007 // it under the terms of the GNU General Public License as published by
00008 // the Free Software Foundation; either version 3 of the License, or
00009 // (at your option) any later version.
00010 // 
00011 // This program is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 // GNU General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU General Public License
00017 // along with this program; if not, write to the Free Software
00018 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00019 
00020 #ifndef _GSTUTIL_H
00021 #define _GSTUTIL_H
00022 
00023 #include <gst/gst.h>
00024 #include "dsodefs.h" // DSOEXPORT
00025 
00026 // GST_TIME_AS_MSECONDS not defined as of gst 0.10.9
00027 // is defined as of gst 0.10.19
00028 #ifndef GST_TIME_AS_MSECONDS
00029 # define GST_TIME_AS_MSECONDS(time) ((time) / G_GINT64_CONSTANT (1000000))
00030 #endif
00031 
00032 namespace gnash {
00033 namespace media {
00034 namespace gst {
00035 
00037 //
00040 class DSOEXPORT GstUtil {
00041         
00042 public: 
00043         
00065     static GstElement* get_audiosink_element();
00066 
00067 
00069     //
00076     static bool check_missing_plugins(GstCaps* caps);
00077         
00078 private:
00079 
00080   GstUtil();
00081   ~GstUtil();
00082 };
00083 
00084 } // gnash.media.gst namespace
00085 } // media namespace
00086 } // gnash namespace
00087 
00088 
00089 #endif  /* _GSTUTIL_H */
00090