After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 586450 - [cairotextoverlay] Forward upstream events to both sinkpads
[cairotextoverlay] Forward upstream events to both sinkpads
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
0.10.12
Other All
: Normal normal
: 0.10.31
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-06-20 06:39 UTC by Eray Öztürk
Modified: 2011-06-15 22:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
textoverlay: forward source events to sinks (2.22 KB, patch)
2011-01-24 11:13 UTC, Vincent Penquerc'h
committed Details | Review

Description Eray Öztürk 2009-06-20 06:39:22 UTC
Please describe the problem:
when the pipeline contents a cairotextoverlay element, the seeking functions return FALSE.

Steps to reproduce:
1. 
2. 
3. 


Actual results:


Expected results:


Does this happen every time?
yes

Other information:
with pango-based textoverlay there is no such problem.
Comment 1 Vincent Penquerc'h 2011-01-24 11:13:22 UTC
Created attachment 179147 [details] [review]
textoverlay: forward source events to sinks

Events are passed to the video sink, and to the text sink if it is
linked.
This will allow seeking, for instance.
Comment 2 Vincent Penquerc'h 2011-01-24 11:14:08 UTC
Might also need this:
https://bugzilla.gnome.org/show_bug.cgi?id=640323
Comment 3 Stefan Sauer (gstreamer, gtkdoc dev) 2011-03-02 14:08:14 UTC
Is this really needed? I've tried this using the seek application from gst-plugin-base/tests/examples/seek

./seek 15 "playbin2 uri=file:///home/ensonic/Videos/loopmix.mov video-sink=\"cairotimeoverlay ! xvimagesink\""

and seeking works fine.
Comment 4 Akhil Laddha 2011-04-15 12:44:13 UTC
Vincent, can you please clarify queries of comment#3 ?
Comment 5 Vincent Penquerc'h 2011-04-15 14:23:55 UTC
I just tried with latest git:

gst-launch filesrc location=$FILE ! oggdemux ! theoradec ! ffmpegcolorspace ! cairotextoverlay text=Foo ! navseek ! xvimagesink

Seeking is not working without the patch, and works with the patch. I do get warnings about buffers being seen without a prior newsegment though. These are fixed by the patch in comment 2, 
https://bugzilla.gnome.org/show_bug.cgi?id=640323.
Comment 6 Sebastian Dröge (slomo) 2011-05-26 09:31:03 UTC
(In reply to comment #3)
> Is this really needed? I've tried this using the seek application from
> gst-plugin-base/tests/examples/seek
> 
> ./seek 15 "playbin2 uri=file:///home/ensonic/Videos/loopmix.mov
> video-sink=\"cairotimeoverlay ! xvimagesink\""
> 
> and seeking works fine.

Because you're not using the text sinkpad here. The problem with the default event handler is, that it only forwards the event to a single, random pad upstream. If you have distinct text and video pipelines this will break.
Comment 7 Sebastian Dröge (slomo) 2011-05-26 09:33:41 UTC
commit b99f4be3dbb6f80427f199ac76f5610d477b3eca
Author: Vincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Date:   Mon Jan 24 11:11:48 2011 +0000

    textoverlay: forward source events to sinks
    
    Events are passed to the video sink, and to the text sink if it is
    linked.
    This will allow seeking, for instance.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=586450