summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-07-17 13:30:02 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-07-17 13:30:02 +0200
commit12fbfabb6a307821561a3eed17f4e6e0d5bf8fa1 (patch)
tree6cc6c5a7e8ed80bba260e841caebc7277a15a33e /ext
parent644e11306479b057727ab2a649542d2919935893 (diff)
cairorender: Use correct mimetypes for PDF and SVG
Diffstat (limited to 'ext')
-rw-r--r--ext/cairo/gstcairorender.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/ext/cairo/gstcairorender.c b/ext/cairo/gstcairorender.c
index 97f9602b..f5179676 100644
--- a/ext/cairo/gstcairorender.c
+++ b/ext/cairo/gstcairorender.c
@@ -190,13 +190,12 @@ gst_cairo_render_setcaps_sink (GstPad * pad, GstCaps * caps)
} else
#endif
#if CAIRO_HAS_PDF_SURFACE
- if (!strcmp (mime, "application/x-pdf")) {
+ if (!strcmp (mime, "application/pdf")) {
c->surface = cairo_pdf_surface_create_for_stream (write_func, c, w, h);
} else
#endif
#if CAIRO_HAS_SVG_SURFACE
-//TODO: SVG mimetype + typefinder !!
- if (!strcmp (mime, "image/svg")) {
+ if (!strcmp (mime, "image/svg+xml")) {
c->surface = cairo_svg_surface_create_for_stream (write_func, c, w, h);
} else
#endif
@@ -213,7 +212,7 @@ gst_cairo_render_setcaps_sink (GstPad * pad, GstCaps * caps)
static GstStaticPadTemplate t_src = GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS (
#if CAIRO_HAS_PDF_SURFACE
- "application/x-pdf, "
+ "application/pdf, "
"width = (int) [ 1, MAX], " "height = (int) [ 1, MAX] "
#endif
#if CAIRO_HAS_PDF_SURFACE && (CAIRO_HAS_PS_SURFACE || CAIRO_HAS_SVG_SURFACE || CAIRO_HAS_PNG_FUNCTIONS)
@@ -227,7 +226,7 @@ static GstStaticPadTemplate t_src = GST_STATIC_PAD_TEMPLATE ("src",
";"
#endif
#if CAIRO_HAS_SVG_SURFACE
- "application/svg, "
+ "image/svg+xml, "
"width = (int) [ 1, MAX], " "height = (int) [ 1, MAX] "
#endif
#if (CAIRO_HAS_PDF_SURFACE || CAIRO_HAS_PS_SURFACE || CAIRO_HAS_SVG_SURFACE) && CAIRO_HAS_PNG_FUNCTIONS