diff --git a/ext/spc/gstspc.c b/ext/spc/gstspc.c index b6766d7b60..584e225267 100644 --- a/ext/spc/gstspc.c +++ b/ext/spc/gstspc.c @@ -489,6 +489,7 @@ spc_setup (GstSpcDec * spc) if (OSPC_Init (map.data, map.size) != 0) { + gst_buffer_unmap (spc->buf, &map); return FALSE; } gst_buffer_unmap (spc->buf, &map);