~ubuntu-branches/ubuntu/trusty/gstreamer1.0/trusty-proposed

« back to all changes in this revision

Viewing changes to plugins/elements/gstelements.c

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2012-08-08 18:12:33 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20120808181233-riejwxprfsxh1njl
Tags: 0.11.93-1
* New upstream release:
  + debian/libgstreamer.symbols:
    - Update symbols file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
#include "gsttypefindelement.h"
46
46
#include "gstvalve.h"
47
47
 
48
 
struct _elements_entry
49
 
{
50
 
  const gchar *name;
51
 
  guint rank;
52
 
    GType (*type) (void);
53
 
};
54
 
 
55
 
 
56
 
static struct _elements_entry _elements[] = {
57
 
  {"capsfilter", GST_RANK_NONE, gst_capsfilter_get_type},
58
 
  {"fakesrc", GST_RANK_NONE, gst_fake_src_get_type},
59
 
  {"fakesink", GST_RANK_NONE, gst_fake_sink_get_type},
60
 
#if defined(HAVE_SYS_SOCKET_H) || defined(_MSC_VER)
61
 
  {"fdsrc", GST_RANK_NONE, gst_fd_src_get_type},
62
 
  {"fdsink", GST_RANK_NONE, gst_fd_sink_get_type},
63
 
#endif
64
 
  {"filesrc", GST_RANK_PRIMARY, gst_file_src_get_type},
65
 
  {"funnel", GST_RANK_NONE, gst_funnel_get_type},
66
 
  {"identity", GST_RANK_NONE, gst_identity_get_type},
67
 
  {"input-selector", GST_RANK_NONE, gst_input_selector_get_type},
68
 
  {"output-selector", GST_RANK_NONE, gst_output_selector_get_type},
69
 
  {"queue", GST_RANK_NONE, gst_queue_get_type},
70
 
  {"queue2", GST_RANK_NONE, gst_queue2_get_type},
71
 
  {"filesink", GST_RANK_PRIMARY, gst_file_sink_get_type},
72
 
  {"tee", GST_RANK_NONE, gst_tee_get_type},
73
 
  {"typefind", GST_RANK_NONE, gst_type_find_element_get_type},
74
 
  {"multiqueue", GST_RANK_NONE, gst_multi_queue_get_type},
75
 
  {"valve", GST_RANK_NONE, gst_valve_get_type},
76
 
  {NULL, 0},
77
 
};
78
 
 
79
48
static gboolean
80
49
plugin_init (GstPlugin * plugin)
81
50
{
82
 
  struct _elements_entry *my_elements = _elements;
83
 
 
84
 
  while ((*my_elements).name) {
85
 
    if (!gst_element_register (plugin, (*my_elements).name, (*my_elements).rank,
86
 
            ((*my_elements).type) ()))
87
 
      return FALSE;
88
 
    my_elements++;
89
 
  }
 
51
  if (!gst_element_register (plugin, "capsfilter", GST_RANK_NONE,
 
52
          gst_capsfilter_get_type ()))
 
53
    return FALSE;
 
54
  if (!gst_element_register (plugin, "fakesrc", GST_RANK_NONE,
 
55
          gst_fake_src_get_type ()))
 
56
    return FALSE;
 
57
  if (!gst_element_register (plugin, "fakesink", GST_RANK_NONE,
 
58
          gst_fake_sink_get_type ()))
 
59
    return FALSE;
 
60
#if defined(HAVE_SYS_SOCKET_H) || defined(_MSC_VER)
 
61
  if (!gst_element_register (plugin, "fdsrc", GST_RANK_NONE,
 
62
          gst_fd_src_get_type ()))
 
63
    return FALSE;
 
64
  if (!gst_element_register (plugin, "fdsink", GST_RANK_NONE,
 
65
          gst_fd_sink_get_type ()))
 
66
    return FALSE;
 
67
#endif
 
68
  if (!gst_element_register (plugin, "filesrc", GST_RANK_PRIMARY,
 
69
          gst_file_src_get_type ()))
 
70
    return FALSE;
 
71
  if (!gst_element_register (plugin, "funnel", GST_RANK_NONE,
 
72
          gst_funnel_get_type ()))
 
73
    return FALSE;
 
74
  if (!gst_element_register (plugin, "identity", GST_RANK_NONE,
 
75
          gst_identity_get_type ()))
 
76
    return FALSE;
 
77
  if (!gst_element_register (plugin, "input-selector", GST_RANK_NONE,
 
78
          gst_input_selector_get_type ()))
 
79
    return FALSE;
 
80
  if (!gst_element_register (plugin, "output-selector", GST_RANK_NONE,
 
81
          gst_output_selector_get_type ()))
 
82
    return FALSE;
 
83
  if (!gst_element_register (plugin, "queue", GST_RANK_NONE,
 
84
          gst_queue_get_type ()))
 
85
    return FALSE;
 
86
  if (!gst_element_register (plugin, "queue2", GST_RANK_NONE,
 
87
          gst_queue2_get_type ()))
 
88
    return FALSE;
 
89
  if (!gst_element_register (plugin, "filesink", GST_RANK_PRIMARY,
 
90
          gst_file_sink_get_type ()))
 
91
    return FALSE;
 
92
  if (!gst_element_register (plugin, "tee", GST_RANK_NONE, gst_tee_get_type ()))
 
93
    return FALSE;
 
94
  if (!gst_element_register (plugin, "typefind", GST_RANK_NONE,
 
95
          gst_type_find_element_get_type ()))
 
96
    return FALSE;
 
97
  if (!gst_element_register (plugin, "multiqueue", GST_RANK_NONE,
 
98
          gst_multi_queue_get_type ()))
 
99
    return FALSE;
 
100
  if (!gst_element_register (plugin, "valve", GST_RANK_NONE,
 
101
          gst_valve_get_type ()))
 
102
    return FALSE;
90
103
 
91
104
  return TRUE;
92
105
}
93
106
 
94
 
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
95
 
    GST_VERSION_MINOR,
96
 
    coreelements,
97
 
    "standard GStreamer elements",
98
 
    plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN);
 
107
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, GST_VERSION_MINOR, coreelements,
 
108
    " GStreamer core elements", plugin_init, VERSION, GST_LICENSE,
 
109
    GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN);