mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 12:10:37 +00:00
fixed warnings in /ext added mikmod_types.h to get it done
Original commit message from CVS: fixed warnings in /ext added mikmod_types.h to get it done
This commit is contained in:
parent
31375b100c
commit
49794999b3
4 changed files with 52 additions and 3 deletions
|
@ -7,6 +7,7 @@ libgstmikmod_la_CFLAGS = $(GST_CFLAGS) $(MIKMOD_CFLAGS)
|
|||
libgstmikmod_la_LIBADD = $(MIKMOD_LIBS)
|
||||
libgstmikmod_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
||||
|
||||
noinst_HEADERS = gstmikmod.h
|
||||
noinst_HEADERS = gstmikmod.h \
|
||||
mikmod_types.h
|
||||
|
||||
EXTRA_DIST = README
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
*/
|
||||
|
||||
#include "gstmikmod.h"
|
||||
#include "mikmod_types.h"
|
||||
|
||||
#include <gst/audio/audio.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -18,6 +18,9 @@
|
|||
*/
|
||||
|
||||
#include <gst/gst.h>
|
||||
#include "mikmod_types.h"
|
||||
#include <string.h> /* memcmp */
|
||||
#include <ctype.h> /* isdigit */
|
||||
|
||||
#define MODULEHEADERSIZE 0x438
|
||||
|
||||
|
@ -140,15 +143,15 @@ gchar *data;
|
|||
data = GST_BUFFER_DATA( buf );
|
||||
|
||||
if( ! memcmp( data, "IMPM", 4 ))
|
||||
return TRUE ;
|
||||
return TRUE;
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
gboolean M15_CheckType( GstBuffer *buf )
|
||||
{
|
||||
/* FIXME: M15 CheckType to do */
|
||||
return FALSE;
|
||||
#warning M15 CheckType to do
|
||||
}
|
||||
|
||||
gboolean Med_CheckType( GstBuffer *buf )
|
||||
|
|
44
ext/mikmod/mikmod_types.h
Normal file
44
ext/mikmod/mikmod_types.h
Normal file
|
@ -0,0 +1,44 @@
|
|||
/* GStreamer
|
||||
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
#ifndef __MIKMOD_TYPES_H__
|
||||
#define __MIKMOD_TYPES_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
gboolean MOD_CheckType (GstBuffer *buf);
|
||||
gboolean Mod_669_CheckType (GstBuffer *buf);
|
||||
gboolean Amf_CheckType (GstBuffer *buf);
|
||||
gboolean Dsm_CheckType (GstBuffer *buf);
|
||||
gboolean Fam_CheckType (GstBuffer *buf);
|
||||
gboolean Gdm_CheckType (GstBuffer *buf);
|
||||
gboolean Imf_CheckType (GstBuffer *buf);
|
||||
gboolean It_CheckType (GstBuffer *buf);
|
||||
gboolean M15_CheckType (GstBuffer *buf);
|
||||
gboolean Mtm_CheckType (GstBuffer *buf);
|
||||
gboolean Okt_CheckType (GstBuffer *buf);
|
||||
gboolean S3m_CheckType (GstBuffer *buf);
|
||||
gboolean Xm_CheckType (GstBuffer *buf);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __MIKMOD_TYPES_H__ */
|
Loading…
Reference in a new issue