gst_plugins_good/gst/autodetect/gstautodetect.c
changeset 16 8e837d1bf446
parent 2 5505e8908944
equal deleted inserted replaced
15:4b0c6ed43234 16:8e837d1bf446
    23 
    23 
    24 #include <gst/gst.h>
    24 #include <gst/gst.h>
    25 
    25 
    26 #include "gstautodetect.h"
    26 #include "gstautodetect.h"
    27 #include "gstautoaudiosink.h"
    27 #include "gstautoaudiosink.h"
       
    28 #include "gstautoaudiosrc.h"
    28 #include "gstautovideosink.h"
    29 #include "gstautovideosink.h"
       
    30 #include "gstautovideosrc.h"
    29 
    31 
    30 GST_DEBUG_CATEGORY (autodetect_debug);
    32 GST_DEBUG_CATEGORY (autodetect_debug);
    31 
    33 
    32 static gboolean
    34 static gboolean
    33 plugin_init (GstPlugin * plugin)
    35 plugin_init (GstPlugin * plugin)
    35   GST_DEBUG_CATEGORY_INIT (autodetect_debug, "autodetect", 0,
    37   GST_DEBUG_CATEGORY_INIT (autodetect_debug, "autodetect", 0,
    36       "Autodetection audio/video output wrapper elements");
    38       "Autodetection audio/video output wrapper elements");
    37 
    39 
    38   return gst_element_register (plugin, "autovideosink",
    40   return gst_element_register (plugin, "autovideosink",
    39       GST_RANK_NONE, GST_TYPE_AUTO_VIDEO_SINK) &&
    41       GST_RANK_NONE, GST_TYPE_AUTO_VIDEO_SINK) &&
       
    42       gst_element_register (plugin, "autovideosrc",
       
    43       GST_RANK_NONE, GST_TYPE_AUTO_VIDEO_SRC) &&
    40       gst_element_register (plugin, "autoaudiosink",
    44       gst_element_register (plugin, "autoaudiosink",
    41       GST_RANK_NONE, GST_TYPE_AUTO_AUDIO_SINK);
    45       GST_RANK_NONE, GST_TYPE_AUTO_AUDIO_SINK) &&
       
    46       gst_element_register (plugin, "autoaudiosrc",
       
    47       GST_RANK_NONE, GST_TYPE_AUTO_AUDIO_SRC);
    42 }
    48 }
    43 
    49 
    44 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
    50 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
    45     GST_VERSION_MINOR,
    51     GST_VERSION_MINOR,
    46     "autodetect",
    52     "autodetect",
    47     "Plugin contains auto-detection plugins for video/audio outputs",
    53     "Plugin contains auto-detection plugins for video/audio in- and outputs",
    48     plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
    54     plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
    49 
    55 
    50 #ifdef __SYMBIAN32__
    56 #ifdef __SYMBIAN32__
    51 EXPORT_C GstPluginDesc* _GST_PLUGIN_DESC()
    57 EXPORT_C GstPluginDesc* _GST_PLUGIN_DESC()
    52 {
    58 {