summaryrefslogtreecommitdiffstats
path: root/ext/musepack
diff options
context:
space:
mode:
Diffstat (limited to 'ext/musepack')
-rw-r--r--ext/musepack/gstmusepackreader.c6
-rw-r--r--ext/musepack/gstmusepackreader.cpp6
2 files changed, 12 insertions, 0 deletions
diff --git a/ext/musepack/gstmusepackreader.c b/ext/musepack/gstmusepackreader.c
index 2bef1cf2..07fbcf3d 100644
--- a/ext/musepack/gstmusepackreader.c
+++ b/ext/musepack/gstmusepackreader.c
@@ -64,6 +64,9 @@ GstMusepackReader::read (void * ptr, mpc_int32_t size)
this->eos = true;
gst_event_unref (event);
goto done;
+ case GST_EVENT_FLUSH:
+ gst_event_unref (event);
+ break;
default:
gst_pad_event_default (this->bs->pad, event);
break;
@@ -117,6 +120,9 @@ GstMusepackReader::seek (mpc_int32_t offset)
case GST_EVENT_INTERRUPT:
g_warning ("interrupt!");
return false;
+ case GST_EVENT_FLUSH:
+ gst_event_unref (event);
+ break;
default:
gst_pad_event_default (this->bs->pad, event);
break;
diff --git a/ext/musepack/gstmusepackreader.cpp b/ext/musepack/gstmusepackreader.cpp
index 2bef1cf2..07fbcf3d 100644
--- a/ext/musepack/gstmusepackreader.cpp
+++ b/ext/musepack/gstmusepackreader.cpp
@@ -64,6 +64,9 @@ GstMusepackReader::read (void * ptr, mpc_int32_t size)
this->eos = true;
gst_event_unref (event);
goto done;
+ case GST_EVENT_FLUSH:
+ gst_event_unref (event);
+ break;
default:
gst_pad_event_default (this->bs->pad, event);
break;
@@ -117,6 +120,9 @@ GstMusepackReader::seek (mpc_int32_t offset)
case GST_EVENT_INTERRUPT:
g_warning ("interrupt!");
return false;
+ case GST_EVENT_FLUSH:
+ gst_event_unref (event);
+ break;
default:
gst_pad_event_default (this->bs->pad, event);
break;