[gst-cvs] gst-plugins-bad: assrender: Fix compilation with libass = 0.9.6

Sebastian Dröge slomo at kemper.freedesktop.org
Tue Sep 8 00:28:14 PDT 2009


Module: gst-plugins-bad
Branch: master
Commit: 90ae1ac35eabaa8e5b5ecbe97986cac34410385f
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=90ae1ac35eabaa8e5b5ecbe97986cac34410385f

Author: Marc-André Lureau <mlureau at flumotion.com>
Date:   Mon Sep  7 17:33:15 2009 +0200

assrender: Fix compilation with libass = 0.9.6

Fixes bug #594382.

---

 ext/assrender/gstassrender.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ext/assrender/gstassrender.c b/ext/assrender/gstassrender.c
index a62c4d1..0c5e8a2 100644
--- a/ext/assrender/gstassrender.c
+++ b/ext/assrender/gstassrender.c
@@ -302,7 +302,7 @@ gst_assrender_setcaps_video (GstPad * pad, GstCaps * caps)
 
     dar = (((gdouble) par_n) * ((gdouble) render->width));
     dar /= (((gdouble) par_d) * ((gdouble) render->height));
-#if !defined(LIBASS_VERSION) || LIBASS_VERSION < 0x00907010
+#if !defined(LIBASS_VERSION) || LIBASS_VERSION < 0x00907000
     ass_set_aspect_ratio (render->ass_renderer, dar);
 #else
     ass_set_aspect_ratio (render->ass_renderer,
@@ -311,7 +311,7 @@ gst_assrender_setcaps_video (GstPad * pad, GstCaps * caps)
     ass_set_font_scale (render->ass_renderer, 1.0);
     ass_set_hinting (render->ass_renderer, ASS_HINTING_NATIVE);
 
-#if !defined(LIBASS_VERSION) || LIBASS_VERSION < 0x00907010
+#if !defined(LIBASS_VERSION) || LIBASS_VERSION < 0x00907000
     ass_set_fonts (render->ass_renderer, "Arial", "sans-serif");
     ass_set_fonts (render->ass_renderer, NULL, "Sans");
 #else





More information about the Gstreamer-commits mailing list