mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
textoverlay: drop trailing whitespaces
This commit is contained in:
parent
fee3266056
commit
1d73ea887d
1 changed files with 6 additions and 6 deletions
|
@ -32,7 +32,7 @@
|
|||
* the text set via the "text" property will be rendered. If the text sink
|
||||
* pad is linked, text will be rendered as it is received on that pad,
|
||||
* honouring and matching the buffer timestamps of both input streams.
|
||||
*
|
||||
*
|
||||
* The text can contain newline characters and text wrapping is enabled by
|
||||
* default.
|
||||
*
|
||||
|
@ -41,7 +41,7 @@
|
|||
* |[
|
||||
* gst-launch -v videotestsrc ! textoverlay text="Room A" valign=top halign=left ! xvimagesink
|
||||
* ]| Here is a simple pipeline that displays a static text in the top left
|
||||
* corner of the video picture
|
||||
* corner of the video picture
|
||||
* |[
|
||||
* gst-launch -v filesrc location=subtitles.srt ! subparse ! txt. videotestsrc ! timeoverlay ! textoverlay name=txt shaded-background=yes ! xvimagesink
|
||||
* ]| Here is another pipeline that displays subtitles from an .srt subtitle
|
||||
|
@ -54,12 +54,12 @@
|
|||
* 1
|
||||
* 00:00:03,000 --> 00:00:05,000
|
||||
* Hello? (3-5s)
|
||||
*
|
||||
*
|
||||
* 2
|
||||
* 00:00:08,000 --> 00:00:13,000
|
||||
* Yes, this is a subtitle. Don't
|
||||
* you like it? (8-13s)
|
||||
*
|
||||
*
|
||||
* 3
|
||||
* 00:00:18,826 --> 00:01:02,886
|
||||
* Uh? What are you talking about?
|
||||
|
@ -1268,8 +1268,8 @@ gst_text_overlay_render_pangocairo (GstTextOverlay * overlay,
|
|||
|
||||
if (width + overlay->deltax >
|
||||
(overlay->use_vertical_render ? overlay->height : overlay->width)) {
|
||||
/*
|
||||
* subtitle image width is larger then overlay width
|
||||
/*
|
||||
* subtitle image width is larger then overlay width
|
||||
* so rearrange overlay wrap mode.
|
||||
*/
|
||||
gst_text_overlay_update_wrap_mode (overlay);
|
||||
|
|
Loading…
Reference in a new issue