summaryrefslogtreecommitdiffstats
path: root/ext/musepack
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2004-11-11 17:43:30 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2004-11-11 17:43:30 +0000
commit984afa245368e568a15272e8d7f17ba241ab0b46 (patch)
tree6c96d3594826e2a97678c552937fe6e0a2f68315 /ext/musepack
parent8ea1ed65fd723b1f2ca4d14ecc0604e79b3c0ed4 (diff)
downloadgst-plugins-bad-984afa245368e568a15272e8d7f17ba241ab0b46.tar.gz
gst-plugins-bad-984afa245368e568a15272e8d7f17ba241ab0b46.tar.bz2
gst-plugins-bad-984afa245368e568a15272e8d7f17ba241ab0b46.zip
ext/musepack/gstmusepackreader.cpp: Workaround for older core.
Original commit message from CVS: * ext/musepack/gstmusepackreader.cpp: Workaround for older core.
Diffstat (limited to 'ext/musepack')
-rw-r--r--ext/musepack/gstmusepackreader.c2
-rw-r--r--ext/musepack/gstmusepackreader.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/musepack/gstmusepackreader.c b/ext/musepack/gstmusepackreader.c
index e26baabc..2bef1cf2 100644
--- a/ext/musepack/gstmusepackreader.c
+++ b/ext/musepack/gstmusepackreader.c
@@ -87,7 +87,7 @@ GstMusepackReader::seek (mpc_int32_t offset)
/* hacky hack - if we're after typefind, we'll fail because
* typefind is still typefinding (heh :) ). So read first. */
- if (this->tell () == 0) {
+ if (this->tell () != this->get_size ()) {
guint8 dummy2[1];
this->read (dummy2, 1);
}
diff --git a/ext/musepack/gstmusepackreader.cpp b/ext/musepack/gstmusepackreader.cpp
index e26baabc..2bef1cf2 100644
--- a/ext/musepack/gstmusepackreader.cpp
+++ b/ext/musepack/gstmusepackreader.cpp
@@ -87,7 +87,7 @@ GstMusepackReader::seek (mpc_int32_t offset)
/* hacky hack - if we're after typefind, we'll fail because
* typefind is still typefinding (heh :) ). So read first. */
- if (this->tell () == 0) {
+ if (this->tell () != this->get_size ()) {
guint8 dummy2[1];
this->read (dummy2, 1);
}