mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 18:35:35 +00:00
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.
This commit is contained in:
parent
789a7b20ac
commit
9410acd1fa
2 changed files with 13 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
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>
|
2006-02-03 Edgard Lima <edgard.lima@indt.org.br>
|
||||||
|
|
||||||
* ext/flac/gstflacenc.c:
|
* 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);
|
absolute_byte_offset, GST_BUFFER_OFFSET_NONE, 0);
|
||||||
|
|
||||||
if ((peerpad = gst_pad_get_peer (flacenc->srcpad))) {
|
if ((peerpad = gst_pad_get_peer (flacenc->srcpad))) {
|
||||||
#ifndef GST_DISABLE_GST_DEBUG
|
|
||||||
gboolean ret = gst_pad_send_event (peerpad, event);
|
gboolean ret = gst_pad_send_event (peerpad, event);
|
||||||
#endif
|
|
||||||
|
|
||||||
gst_object_unref (peerpad);
|
gst_object_unref (peerpad);
|
||||||
|
|
||||||
GST_DEBUG ("Seek to %" G_GUINT64_FORMAT " %s", absolute_byte_offset,
|
if (ret) {
|
||||||
(ret) ? "succeeded" : "failed");
|
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 {
|
} else {
|
||||||
GST_DEBUG ("Seek to %" G_GUINT64_FORMAT " failed (no peer pad)",
|
GST_DEBUG ("Seek to %" G_GUINT64_FORMAT " failed (no peer pad)",
|
||||||
absolute_byte_offset);
|
absolute_byte_offset);
|
||||||
|
|
Loading…
Reference in a new issue