mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
Remove audio/mod type from mikmod (build with modplug now)
Original commit message from CVS: Remove audio/mod type from mikmod (build with modplug now)
This commit is contained in:
parent
07f3eef84d
commit
f4d55b77c5
2 changed files with 2 additions and 62 deletions
|
@ -2,12 +2,11 @@ plugindir = $(libdir)/gst
|
||||||
|
|
||||||
plugin_LTLIBRARIES = libgstmikmod.la
|
plugin_LTLIBRARIES = libgstmikmod.la
|
||||||
|
|
||||||
libgstmikmod_la_SOURCES = gstmikmod.c drv_gst.c mikmod_reader.c mikmod_types.c
|
libgstmikmod_la_SOURCES = gstmikmod.c drv_gst.c mikmod_reader.c
|
||||||
libgstmikmod_la_CFLAGS = $(GST_CFLAGS) $(MIKMOD_CFLAGS)
|
libgstmikmod_la_CFLAGS = $(GST_CFLAGS) $(MIKMOD_CFLAGS)
|
||||||
libgstmikmod_la_LIBADD = $(MIKMOD_LIBS)
|
libgstmikmod_la_LIBADD = $(MIKMOD_LIBS)
|
||||||
libgstmikmod_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
libgstmikmod_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
||||||
|
|
||||||
noinst_HEADERS = gstmikmod.h \
|
noinst_HEADERS = gstmikmod.h
|
||||||
mikmod_types.h
|
|
||||||
|
|
||||||
EXTRA_DIST = README
|
EXTRA_DIST = README
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "gstmikmod.h"
|
#include "gstmikmod.h"
|
||||||
#include "mikmod_types.h"
|
|
||||||
|
|
||||||
#include <gst/audio/audio.h>
|
#include <gst/audio/audio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -109,59 +108,6 @@ mikmod_sink_factory (void)
|
||||||
return template;
|
return template;
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstCaps*
|
|
||||||
mikmod_type_find (GstBuffer *buf, gpointer private)
|
|
||||||
{
|
|
||||||
if ( MOD_CheckType( buf ) )
|
|
||||||
return gst_caps_new ("mikmod_type_find", "audio/mod", NULL);
|
|
||||||
|
|
||||||
if ( Mod_669_CheckType( buf ) )
|
|
||||||
return gst_caps_new ("mikmod_type_find", "audio/mod", NULL);
|
|
||||||
|
|
||||||
if ( Amf_CheckType( buf ) )
|
|
||||||
return gst_caps_new ("mikmod_type_find", "audio/mod", NULL);
|
|
||||||
|
|
||||||
if ( Dsm_CheckType( buf ) )
|
|
||||||
return gst_caps_new ("mikmod_type_find", "audio/mod", NULL);
|
|
||||||
|
|
||||||
if ( Fam_CheckType( buf ) )
|
|
||||||
return gst_caps_new ("mikmod_type_find", "audio/mod", NULL);
|
|
||||||
|
|
||||||
if ( Gdm_CheckType( buf ) )
|
|
||||||
return gst_caps_new ("mikmod_type_find", "audio/mod", NULL);
|
|
||||||
|
|
||||||
if ( Imf_CheckType( buf ) )
|
|
||||||
return gst_caps_new ("mikmod_type_find", "audio/mod", NULL);
|
|
||||||
|
|
||||||
if ( It_CheckType( buf ) )
|
|
||||||
return gst_caps_new ("mikmod_type_find", "audio/mod", NULL);
|
|
||||||
|
|
||||||
if ( M15_CheckType( buf ) )
|
|
||||||
return gst_caps_new ("mikmod_type_find", "audio/mod", NULL);
|
|
||||||
|
|
||||||
/* FIXME
|
|
||||||
if ( Med_CheckType( buf ) )
|
|
||||||
return gst_caps_new ("mikmod_type_find", "audio/mod", NULL);
|
|
||||||
*/
|
|
||||||
|
|
||||||
if ( Mtm_CheckType( buf ) )
|
|
||||||
return gst_caps_new ("mikmod_type_find", "audio/mod", NULL);
|
|
||||||
|
|
||||||
if ( Okt_CheckType( buf ) )
|
|
||||||
return gst_caps_new ("mikmod_type_find", "audio/mod", NULL);
|
|
||||||
|
|
||||||
if ( S3m_CheckType( buf ) )
|
|
||||||
return gst_caps_new ("mikmod_type_find", "audio/mod", NULL);
|
|
||||||
|
|
||||||
if ( Xm_CheckType( buf ) )
|
|
||||||
return gst_caps_new ("mikmod_type_find", "audio/mod", NULL);
|
|
||||||
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
static GstTypeDefinition mikmoddefinition = {
|
|
||||||
"mikmod_audio/mod", "audio/mod", ".mod .sam .med .s3m .it .xm .stm .mtm .669 .ult .far .amf .dsm .imf .gdm .stx .okt", mikmod_type_find
|
|
||||||
};
|
|
||||||
|
|
||||||
static void gst_mikmod_class_init (GstMikModClass *klass);
|
static void gst_mikmod_class_init (GstMikModClass *klass);
|
||||||
static void gst_mikmod_init (GstMikMod *filter);
|
static void gst_mikmod_init (GstMikMod *filter);
|
||||||
|
@ -544,7 +490,6 @@ gst_mikmod_set_property (GObject *object, guint id, const GValue *value, GParamS
|
||||||
filter->stereo = g_value_get_boolean (value);
|
filter->stereo = g_value_get_boolean (value);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); */
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -602,7 +547,6 @@ gst_mikmod_get_property (GObject *object, guint id, GValue *value, GParamSpec *p
|
||||||
g_value_set_boolean (value, filter->stereo);
|
g_value_set_boolean (value, filter->stereo);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); */
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -611,7 +555,6 @@ static gboolean
|
||||||
plugin_init (GModule *module, GstPlugin *plugin)
|
plugin_init (GModule *module, GstPlugin *plugin)
|
||||||
{
|
{
|
||||||
GstElementFactory *factory;
|
GstElementFactory *factory;
|
||||||
GstTypeFactory *type;
|
|
||||||
|
|
||||||
factory = gst_element_factory_new("mikmod",GST_TYPE_MIKMOD,
|
factory = gst_element_factory_new("mikmod",GST_TYPE_MIKMOD,
|
||||||
&mikmod_details);
|
&mikmod_details);
|
||||||
|
@ -621,8 +564,6 @@ plugin_init (GModule *module, GstPlugin *plugin)
|
||||||
gst_element_factory_add_pad_template (factory, mikmod_src_factory ());
|
gst_element_factory_add_pad_template (factory, mikmod_src_factory ());
|
||||||
gst_element_factory_add_pad_template (factory, mikmod_sink_factory ());
|
gst_element_factory_add_pad_template (factory, mikmod_sink_factory ());
|
||||||
|
|
||||||
type = gst_type_factory_new (&mikmoddefinition);
|
|
||||||
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (type));
|
|
||||||
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory));
|
gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory));
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue