gst_plugins_good/gst/autodetect/gstautodetect.c
changeset 0 0e761a78d257
equal deleted inserted replaced
-1:000000000000 0:0e761a78d257
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 /* GStreamer
       
    18  * (c) 2005 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
       
    19  *
       
    20  * This library is free software; you can redistribute it and/or
       
    21  * modify it under the terms of the GNU Library General Public
       
    22  * License as published by the Free Software Foundation; either
       
    23  * version 2 of the License, or (at your option) any later version.
       
    24  *
       
    25  * This library is distributed in the hope that it will be useful,
       
    26  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    27  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    28  * Library General Public License for more details.
       
    29  *
       
    30  * You should have received a copy of the GNU Library General Public
       
    31  * License along with this library; if not, write to the
       
    32  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
       
    33  * Boston, MA 02111-1307, USA.
       
    34  */
       
    35 
       
    36 #ifdef HAVE_CONFIG_H
       
    37 #include "config.h"
       
    38 #endif
       
    39 
       
    40 #include <gst/gst.h>
       
    41 
       
    42 #include "gstautodetect.h"
       
    43 #include "gstautoaudiosink.h"
       
    44 #include "gstautovideosink.h"
       
    45 
       
    46 GST_DEBUG_CATEGORY (autodetect_debug);
       
    47 
       
    48 static gboolean
       
    49 plugin_init (GstPlugin * plugin)
       
    50 {
       
    51   GST_DEBUG_CATEGORY_INIT (autodetect_debug, "autodetect", 0,
       
    52       "Autodetection audio/video output wrapper elements");
       
    53 
       
    54   return gst_element_register (plugin, "autovideosink",
       
    55       GST_RANK_NONE, GST_TYPE_AUTO_VIDEO_SINK) &&
       
    56       gst_element_register (plugin, "autoaudiosink",
       
    57       GST_RANK_NONE, GST_TYPE_AUTO_AUDIO_SINK);
       
    58 }
       
    59 
       
    60 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
       
    61     GST_VERSION_MINOR,
       
    62     "autodetect",
       
    63     "Plugin contains auto-detection plugins for video/audio outputs",
       
    64     plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
       
    65 
       
    66 #ifdef __SYMBIAN32__
       
    67 EXPORT_C GstPluginDesc* _GST_PLUGIN_DESC()
       
    68 {
       
    69     return &gst_plugin_desc;
       
    70 }
       
    71 #endif