[longomatch] Use the video height for the font size
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Use the video height for the font size
- Date: Tue, 7 Sep 2010 20:22:28 +0000 (UTC)
commit b616d2099c1023f715ada347ae54dde197e7cc27
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Fri Sep 3 18:10:27 2010 +0200
Use the video height for the font size
libcesarplayer/src/gst-video-editor.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libcesarplayer/src/gst-video-editor.c b/libcesarplayer/src/gst-video-editor.c
index 6c4bf7b..922ed83 100644
--- a/libcesarplayer/src/gst-video-editor.c
+++ b/libcesarplayer/src/gst-video-editor.c
@@ -29,7 +29,7 @@
#define DEFAULT_VIDEO_ENCODER "vp8enc"
#define DEFAULT_AUDIO_ENCODER "vorbisenc"
#define DEFAULT_VIDEO_MUXER "matroskamux"
-#define FONT_SIZE_FACTOR 0.03
+#define FONT_SIZE_FACTOR 0.05
#define LAME_CAPS "audio/x-raw-int, rate=44100, channels=2, endianness=1234, signed=true, width=16, depth=16"
#define VORBIS_CAPS "audio/x-raw-float, rate=44100, channels=2, endianness=1234, signed=true, width=32, depth=32"
#define FAAC_CAPS "audio/x-raw-int, rate=44100, channels=2, endianness=1234, signed=true, width=16, depth=16"
@@ -482,7 +482,7 @@ gve_apply_new_caps (GstVideoEditor * gve)
g_object_set (G_OBJECT (gve->priv->capsfilter), "caps", caps, NULL);
font =
g_strdup_printf ("sans bold %d",
- (int) (gve->priv->width * FONT_SIZE_FACTOR));
+ (int) (gve->priv->height * FONT_SIZE_FACTOR));
g_object_set (G_OBJECT (gve->priv->textoverlay), "font-desc", font, NULL);
g_free (font);
gst_caps_unref (caps);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]