~ubuntu-branches/ubuntu/precise/gst-plugins-bad0.10/precise-proposed

« back to all changes in this revision

Viewing changes to sys/osxvideo/osxvideoplugin.m

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2009-05-12 09:51:24 UTC
  • mto: (18.3.2 experimental) (1.3.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 31.
  • Revision ID: james.westby@ubuntu.com-20090512095124-ugy051q0n88kk9f8
Tags: upstream-0.10.11.2
Import upstream version 0.10.11.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* GStreamer
 
2
 * OSX video src
 
3
 * Copyright (C) 2004-6 Zaheer Abbas Merali <zaheerabbas at merali dot org>
 
4
 * Copyright (C) 2007 Pioneers of the Inevitable <songbird@songbirdnest.com>
 
5
 *
 
6
 * This library is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU Library General Public
 
8
 * License as published by the Free Software Foundation; either
 
9
 * version 2 of the License, or (at your option) any later version.
 
10
 *
 
11
 * This library is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
 * Library General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU Library General Public
 
17
 * License along with this library; if not, write to the
 
18
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
19
 * Boston, MA 02111-1307, USA.
 
20
 *
 
21
 * The development of this code was made possible due to the involvement of
 
22
 * Pioneers of the Inevitable, the creators of the Songbird Music player.
 
23
 *
 
24
 */
 
25
 
 
26
#ifdef HAVE_CONFIG_H
 
27
#include "config.h"
 
28
#endif
 
29
 
 
30
/* Object header */
 
31
#include "osxvideosrc.h"
 
32
 
 
33
static gboolean
 
34
plugin_init (GstPlugin * plugin)
 
35
{
 
36
  if (!gst_element_register (plugin, "osxvideosrc",
 
37
          GST_RANK_PRIMARY, GST_TYPE_OSX_VIDEO_SRC))
 
38
    return FALSE;
 
39
 
 
40
  GST_DEBUG_CATEGORY_INIT (gst_debug_osx_video_src, "osxvideosrc", 0,
 
41
                           "osxvideosrc element");
 
42
 
 
43
  return TRUE;
 
44
}
 
45
 
 
46
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
 
47
    GST_VERSION_MINOR,
 
48
    "osxvideosrc",
 
49
    "OSX native video input plugin",
 
50
    plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)