~ubuntu-branches/ubuntu/feisty/gst-plugins-good0.10/feisty-security

« back to all changes in this revision

Viewing changes to sys/v4l2/gstv4l2.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2006-12-21 21:12:15 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20061221211215-3uukkusokhe0nk4f
Tags: 0.10.5-0ubuntu1
* Sync with pkg-gstreamer SVN:
  + debian/rules:
    - Use Ubuntu as distribution name and point to the proper Launchpad URL
  + debian/patches/01_esdsink-priority.patch:
    - Mark the esdsink with rank primary-2 to get
      pulse > alsadmix > esd > alsa > oss

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* GStreamer
 
2
 *
 
3
 * Copyright (C) 2001-2002 Ronald Bultje <rbultje@ronald.bitfreak.net>
 
4
 *               2006 Edgard Lima <edgard.lima@indt.org.br>
 
5
 *
 
6
 * gstv4l2.c: plugin for v4l2 elements
 
7
 *
 
8
 * This library is free software; you can redistribute it and/or
 
9
 * modify it under the terms of the GNU Library General Public
 
10
 * License as published by the Free Software Foundation; either
 
11
 * version 2 of the License, or (at your option) any later version.
 
12
 *
 
13
 * This library is distributed in the hope that it will be useful,
 
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
16
 * Library General Public License for more details.
 
17
 *
 
18
 * You should have received a copy of the GNU Library General Public
 
19
 * License along with this library; if not, write to the
 
20
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
21
 * Boston, MA 02111-1307, USA.
 
22
 */
 
23
 
 
24
#ifdef HAVE_CONFIG_H
 
25
#include "config.h"
 
26
#endif
 
27
 
 
28
#include "gst/gst-i18n-plugin.h"
 
29
 
 
30
#include <gst/gst.h>
 
31
 
 
32
#include "gstv4l2object.h"
 
33
#include "gstv4l2src.h"
 
34
/* #include "gstv4l2jpegsrc.h" */
 
35
/* #include "gstv4l2mjpegsrc.h" */
 
36
/* #include "gstv4l2mjpegsink.h" */
 
37
 
 
38
/* used in v4l2_calls.c and v4l2src_calls.c */
 
39
GST_DEBUG_CATEGORY (v4l2_debug);
 
40
 
 
41
static gboolean
 
42
plugin_init (GstPlugin * plugin)
 
43
{
 
44
  GST_DEBUG_CATEGORY_INIT (v4l2_debug, "v4l2", 0, "V4L2 API calls");
 
45
 
 
46
  if (!gst_element_register (plugin, "v4l2src", GST_RANK_NONE,
 
47
          GST_TYPE_V4L2SRC))
 
48
    /*       !gst_element_register (plugin, "v4l2jpegsrc", */
 
49
    /*           GST_RANK_NONE, GST_TYPE_V4L2JPEGSRC) || */
 
50
    /*       !gst_element_register (plugin, "v4l2mjpegsrc", */
 
51
    /*           GST_RANK_NONE, GST_TYPE_V4L2MJPEGSRC) || */
 
52
    /*       !gst_element_register (plugin, "v4l2mjpegsink", */
 
53
    /*           GST_RANK_NONE, GST_TYPE_V4L2MJPEGSINK)) */
 
54
    return FALSE;
 
55
 
 
56
#ifdef ENABLE_NLS
 
57
  setlocale (LC_ALL, "");
 
58
  bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
 
59
#endif /* ENABLE_NLS */
 
60
 
 
61
  return TRUE;
 
62
}
 
63
 
 
64
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
 
65
    GST_VERSION_MINOR,
 
66
    "video4linux2",
 
67
    "elements for Video 4 Linux",
 
68
    plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)