gst_plugins_good/gst/qtdemux/quicktime.c
author hgs
Wed, 24 Mar 2010 18:04:17 -0500
changeset 16 8e837d1bf446
permissions -rw-r--r--
201009
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16
hgs
parents:
diff changeset
     1
/* GStreamer
hgs
parents:
diff changeset
     2
 * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
hgs
parents:
diff changeset
     3
 * Copyright (C) <2003> David A. Schleef <ds@schleef.org>
hgs
parents:
diff changeset
     4
 * Copyright (C) <2006> Wim Taymans <wim@fluendo.com>
hgs
parents:
diff changeset
     5
 *
hgs
parents:
diff changeset
     6
 * This library is free software; you can redistribute it and/or
hgs
parents:
diff changeset
     7
 * modify it under the terms of the GNU Library General Public
hgs
parents:
diff changeset
     8
 * License as published by the Free Software Foundation; either
hgs
parents:
diff changeset
     9
 * version 2 of the License, or (at your option) any later version.
hgs
parents:
diff changeset
    10
 *
hgs
parents:
diff changeset
    11
 * This library is distributed in the hope that it will be useful,
hgs
parents:
diff changeset
    12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
hgs
parents:
diff changeset
    13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
hgs
parents:
diff changeset
    14
 * Library General Public License for more details.
hgs
parents:
diff changeset
    15
 *
hgs
parents:
diff changeset
    16
 * You should have received a copy of the GNU Library General Public
hgs
parents:
diff changeset
    17
 * License along with this library; if not, write to the
hgs
parents:
diff changeset
    18
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
hgs
parents:
diff changeset
    19
 * Boston, MA 02111-1307, USA.
hgs
parents:
diff changeset
    20
 */
hgs
parents:
diff changeset
    21
hgs
parents:
diff changeset
    22
#ifdef HAVE_CONFIG_H
hgs
parents:
diff changeset
    23
#include "config.h"
hgs
parents:
diff changeset
    24
#endif
hgs
parents:
diff changeset
    25
#include "gst/gst-i18n-plugin.h"
hgs
parents:
diff changeset
    26
hgs
parents:
diff changeset
    27
#include "qtdemux.h"
hgs
parents:
diff changeset
    28
#include "gstrtpxqtdepay.h"
hgs
parents:
diff changeset
    29
hgs
parents:
diff changeset
    30
static gboolean
hgs
parents:
diff changeset
    31
plugin_init (GstPlugin * plugin)
hgs
parents:
diff changeset
    32
{
hgs
parents:
diff changeset
    33
#ifdef ENABLE_NLS
hgs
parents:
diff changeset
    34
  setlocale (LC_ALL, "");
hgs
parents:
diff changeset
    35
  bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
hgs
parents:
diff changeset
    36
  bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
hgs
parents:
diff changeset
    37
#endif /* ENABLE_NLS */
hgs
parents:
diff changeset
    38
hgs
parents:
diff changeset
    39
  /* ensure private tag is registered */
hgs
parents:
diff changeset
    40
  gst_tag_register (GST_QT_DEMUX_PRIVATE_TAG, GST_TAG_FLAG_META,
hgs
parents:
diff changeset
    41
      GST_TYPE_BUFFER, "QT atom", "unparsed QT tag atom",
hgs
parents:
diff changeset
    42
      gst_tag_merge_use_first);
hgs
parents:
diff changeset
    43
hgs
parents:
diff changeset
    44
  gst_tag_register (GST_QT_DEMUX_CLASSIFICATION_TAG, GST_TAG_FLAG_META,
hgs
parents:
diff changeset
    45
      G_TYPE_STRING, GST_QT_DEMUX_CLASSIFICATION_TAG, "content classification",
hgs
parents:
diff changeset
    46
      gst_tag_merge_use_first);
hgs
parents:
diff changeset
    47
hgs
parents:
diff changeset
    48
  if (!gst_element_register (plugin, "qtdemux",
hgs
parents:
diff changeset
    49
          GST_RANK_PRIMARY, GST_TYPE_QTDEMUX))
hgs
parents:
diff changeset
    50
    return FALSE;
hgs
parents:
diff changeset
    51
hgs
parents:
diff changeset
    52
  if (!gst_element_register (plugin, "rtpxqtdepay",
hgs
parents:
diff changeset
    53
          GST_RANK_MARGINAL, GST_TYPE_RTP_XQT_DEPAY))
hgs
parents:
diff changeset
    54
    return FALSE;
hgs
parents:
diff changeset
    55
hgs
parents:
diff changeset
    56
  return TRUE;
hgs
parents:
diff changeset
    57
}
hgs
parents:
diff changeset
    58
hgs
parents:
diff changeset
    59
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
hgs
parents:
diff changeset
    60
    GST_VERSION_MINOR,
hgs
parents:
diff changeset
    61
    "quicktime",
hgs
parents:
diff changeset
    62
    "Quicktime support",
hgs
parents:
diff changeset
    63
    plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN);
hgs
parents:
diff changeset
    64
hgs
parents:
diff changeset
    65
#ifdef SYMBIAN
hgs
parents:
diff changeset
    66
EXPORT_C GstPluginDesc* _GST_PLUGIN_DESC()
hgs
parents:
diff changeset
    67
{
hgs
parents:
diff changeset
    68
    return &gst_plugin_desc;
hgs
parents:
diff changeset
    69
}
hgs
parents:
diff changeset
    70
hgs
parents:
diff changeset
    71
#endif