summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-06-05 05:03:00 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-06-05 05:03:00 +0000
commit69d787b3e14b818033da230e1d8497aa132ef4d6 (patch)
treee96fc613b7bbf615f7a271ebd889a3ef88ad4710 /src
parentc2c34f78dd2b63d27bcbd6f21503bf052cad0655 (diff)
todo update
git-svn-id: https://svn.musicpd.org/mpd/trunk@1341 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src')
-rw-r--r--src/inputPlugins/ogg_plugin.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/inputPlugins/ogg_plugin.c b/src/inputPlugins/ogg_plugin.c
index 466974107..e25798eaf 100644
--- a/src/inputPlugins/ogg_plugin.c
+++ b/src/inputPlugins/ogg_plugin.c
@@ -221,6 +221,7 @@ int ogg_decode(OutputBuffer * cb, DecoderControl * dc, InputStream * inStream)
ov_callbacks callbacks;
OggCallbackData data;
int current_section;
+ int prev_section = -1;
int eof = 0;
long ret;
#define OGG_CHUNK_SIZE 4096
@@ -285,6 +286,10 @@ int ogg_decode(OutputBuffer * cb, DecoderControl * dc, InputStream * inStream)
OGG_DECODE_USE_BIGENDIAN,
2, 1, &current_section);
+ if(current_section!=prev_section) printf("song changed!\n");
+
+ prev_section = current_section;
+
if(ret <= 0 && ret != OV_HOLE) {
eof = 1;
break;