flacenc: plug ref leak

This commit is contained in:
Mark Nauwelaerts 2012-03-29 17:21:53 +02:00
parent 62d6c00ac9
commit 12d7acf6f6

View file

@ -860,6 +860,7 @@ gst_flac_enc_seek_callback (const FLAC__StreamEncoder * encoder,
if (!seekable) {
GST_DEBUG_OBJECT (flacenc, "downstream not seekable; not rewriting");
gst_object_unref (peerpad);
return FLAC__STREAM_ENCODER_SEEK_STATUS_UNSUPPORTED;
}