diff options
author | Edgard Lima <edgard.lima@indt.org.br> | 2006-02-03 20:05:20 +0000 |
---|---|---|
committer | Edgard Lima <edgard.lima@indt.org.br> | 2006-02-03 20:05:20 +0000 |
commit | 9410acd1fad2c01cdb0291a82345c7b58dc74ae2 (patch) | |
tree | 2062b0234cad58a2080be0b42d37d8b918b5543d /ext/flac | |
parent | 789a7b20ac383214965b2a71c64c057ef1797f97 (diff) |
Fixed a bug add in last commit, where no event is send. Thanks Tim to show me.
Original commit message from CVS:
Fixed a bug add in last commit, where no event is send. Thanks Tim to show me.
Diffstat (limited to 'ext/flac')
-rw-r--r-- | ext/flac/gstflacenc.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ext/flac/gstflacenc.c b/ext/flac/gstflacenc.c index d6c1e8de..0eb1ca49 100644 --- a/ext/flac/gstflacenc.c +++ b/ext/flac/gstflacenc.c @@ -509,14 +509,17 @@ gst_flac_enc_seek_callback (const FLAC__SeekableStreamEncoder * encoder, absolute_byte_offset, GST_BUFFER_OFFSET_NONE, 0); if ((peerpad = gst_pad_get_peer (flacenc->srcpad))) { -#ifndef GST_DISABLE_GST_DEBUG gboolean ret = gst_pad_send_event (peerpad, event); -#endif gst_object_unref (peerpad); - GST_DEBUG ("Seek to %" G_GUINT64_FORMAT " %s", absolute_byte_offset, - (ret) ? "succeeded" : "failed"); + if (ret) { + GST_DEBUG ("Seek to %" G_GUINT64_FORMAT " %s", absolute_byte_offset, + "succeeded"); + } else { + GST_DEBUG ("Seek to %" G_GUINT64_FORMAT " %s", absolute_byte_offset, + "failed"); + } } else { GST_DEBUG ("Seek to %" G_GUINT64_FORMAT " failed (no peer pad)", absolute_byte_offset); |