Fixed a bug add in last commit, where no event is send. Thanks Tim to show me.
authorEdgard Lima <edgard.lima@indt.org.br>
Fri, 3 Feb 2006 20:05:20 +0000 (20:05 +0000)
committerEdgard Lima <edgard.lima@indt.org.br>
Fri, 3 Feb 2006 20:05:20 +0000 (20:05 +0000)
Original commit message from CVS:
Fixed a bug add in last commit, where no event is send. Thanks Tim to show me.

ChangeLog
ext/flac/gstflacenc.c

index 0ef020d..799c60d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
 2006-02-03  Edgard Lima <edgard.lima@indt.org.br>
 
        * ext/flac/gstflacenc.c:
+       Fixed a bug add in last commit, where no event is send. Thanks Tim to
+       show me.
+       
+2006-02-03  Edgard Lima <edgard.lima@indt.org.br>
+
+       * ext/flac/gstflacenc.c:
        * gst/matroska/ebml-read.c:
        Just make it compile with --disable-gst-debug.
 
index d6c1e8d..0eb1ca4 100644 (file)
@@ -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);