From 61dbbd46cc02f240bd7474c8e867ff67cfa8b4d4 Mon Sep 17 00:00:00 2001 From: Brian Koropoff <brianhk@cs.washington.edu> Date: Tue, 20 May 2008 09:04:48 +0000 Subject: ext/spc/: Add support for some essential features like seeking, reading song duration and extended tags. Fixes bug #4... Original commit message from CVS: Patch by: Brian Koropoff <brianhk at cs dot washington dot edu> * ext/spc/Makefile.am: * ext/spc/gstspc.c: (gst_spc_dec_class_init), (gst_spc_dec_src_query_type), (gst_spc_dec_init), (gst_spc_dec_dispose), (gst_spc_dec_sink_event), (gst_spc_duration), (gst_spc_fadeout), (gst_spc_dec_src_event), (gst_spc_dec_src_query), (spc_play), (spc_setup): * ext/spc/gstspc.h: * ext/spc/tag.c: (spc_tag_is_extended), (spc_tag_is_text_format), (spc_tag_is_present), (spc_tag_unpack_date), (spc_tag_clear), (spc_tag_get_info), (spc_tag_free): * ext/spc/tag.h: Add support for some essential features like seeking, reading song duration and extended tags. Fixes bug #454151. --- ext/spc/gstspc.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ext/spc/gstspc.h') diff --git a/ext/spc/gstspc.h b/ext/spc/gstspc.h index a1627997..e1740667 100644 --- a/ext/spc/gstspc.h +++ b/ext/spc/gstspc.h @@ -1,5 +1,6 @@ /* Copyright (C) 2004-2005 Michael Pyne <michael dot pyne at kdemail net> * Copyright (C) 2004-2006 Chris Lee <clee at kde org> + * Copyright (C) 2007 Brian Koropoff <bkoropoff at gmail com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -24,6 +25,8 @@ #include <openspc.h> +#include "tag.h" + G_BEGIN_DECLS #define GST_TYPE_SPC_DEC \ @@ -49,6 +52,12 @@ struct _GstSpcDec GstBuffer *buf; gboolean initialized; + gboolean seeking; + guint32 seekpoint; + + spc_tag_info tag_info; + + guint32 byte_pos; }; struct _GstSpcDecClass -- cgit v1.2.1