2006-01-18 19:30:36 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) 1999 Erik Walthinsen <omega@cse.ogi.edu>
|
|
|
|
* Copyright (C) 2006 Tim-Philipp Müller <tim centricular net>
|
|
|
|
*
|
|
|
|
* 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
|
2012-11-03 20:40:37 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2006-01-18 19:30:36 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GST_CDIO_H__
|
|
|
|
#define __GST_CDIO_H__
|
|
|
|
|
2006-01-19 00:10:51 +00:00
|
|
|
#include <gst/gst.h>
|
2006-11-02 14:43:11 +00:00
|
|
|
#include <cdio/cdio.h>
|
2008-06-07 18:48:54 +00:00
|
|
|
#include <cdio/cdtext.h>
|
2012-05-03 22:50:30 +00:00
|
|
|
|
2017-12-06 11:01:39 +00:00
|
|
|
#if LIBCDIO_VERSION_NUM <= 83 && LIBCDIO_VERSION_NUM >= 76
|
2012-05-03 22:50:30 +00:00
|
|
|
#define CDTEXT_FIELD_PERFORMER CDTEXT_PERFORMER
|
|
|
|
#define CDTEXT_FIELD_GENRE CDTEXT_GENRE
|
|
|
|
#define CDTEXT_FIELD_TITLE CDTEXT_TITLE
|
|
|
|
#endif
|
2006-01-18 19:30:36 +00:00
|
|
|
|
|
|
|
GST_DEBUG_CATEGORY_EXTERN (gst_cdio_debug);
|
|
|
|
#define GST_CAT_DEFAULT gst_cdio_debug
|
|
|
|
|
|
|
|
void gst_cdio_add_cdtext_field (GstObject * src,
|
|
|
|
cdtext_t * cdtext,
|
2012-05-03 22:50:30 +00:00
|
|
|
track_t track,
|
2006-01-18 19:30:36 +00:00
|
|
|
cdtext_field_t field,
|
|
|
|
const gchar * gst_tag,
|
|
|
|
GstTagList ** p_tags);
|
|
|
|
|
2006-11-02 14:43:11 +00:00
|
|
|
GstTagList * gst_cdio_get_cdtext (GstObject * src,
|
2017-12-06 11:01:39 +00:00
|
|
|
#if LIBCDIO_VERSION_NUM > 83 || LIBCDIO_VERSION_NUM < 76
|
2012-05-03 22:50:30 +00:00
|
|
|
cdtext_t * t,
|
|
|
|
#else
|
2006-11-02 14:43:11 +00:00
|
|
|
CdIo * cdio,
|
2012-05-03 22:50:30 +00:00
|
|
|
#endif
|
2006-11-02 14:43:11 +00:00
|
|
|
track_t track);
|
|
|
|
|
2008-06-09 20:02:05 +00:00
|
|
|
void gst_cdio_add_cdtext_album_tags (GstObject * src,
|
2017-12-06 11:01:39 +00:00
|
|
|
#if LIBCDIO_VERSION_NUM > 83 || LIBCDIO_VERSION_NUM < 76
|
2012-05-03 22:50:30 +00:00
|
|
|
cdtext_t * t,
|
|
|
|
#else
|
2008-06-09 20:02:05 +00:00
|
|
|
CdIo * cdio,
|
2012-05-03 22:50:30 +00:00
|
|
|
#endif
|
2008-06-09 20:02:05 +00:00
|
|
|
GstTagList * tags);
|
|
|
|
|
2006-01-18 19:30:36 +00:00
|
|
|
#endif /* __GST_CDIO_H__ */
|
|
|
|
|