[totem-pl-parser] lib: Require quvi 0.4.0
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem-pl-parser] lib: Require quvi 0.4.0
- Date: Fri, 21 Oct 2011 15:38:45 +0000 (UTC)
commit 4e15c57a438ee900f6ce601810a59a316b039fa1
Author: Bastien Nocera <hadess hadess net>
Date: Fri Oct 21 16:36:26 2011 +0100
lib: Require quvi 0.4.0
And adapt API usage.
Original patch by Marien Zwart in:
https://bugs.gentoo.org/show_bug.cgi?id=386651
https://bugzilla.gnome.org/show_bug.cgi?id=661451
configure.in | 2 +-
plparse/totem-pl-parser-videosite.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/configure.in b/configure.in
index 24ca380..0d20d32 100644
--- a/configure.in
+++ b/configure.in
@@ -40,7 +40,7 @@ AC_PATH_PROG([GLIB_MKENUMS],[glib-mkenums])
# Requirements
GLIB_REQS=2.31.0
GIO_REQS=2.24.0
-QUVI_REQS=0.2.15
+QUVI_REQS=0.4.0
LIBARCHIVE_REQS=2.8.4
# Before making a release, the PLPARSER_LT_VERSION string should be modified.
diff --git a/plparse/totem-pl-parser-videosite.c b/plparse/totem-pl-parser-videosite.c
index 9706d5a..b1645d6 100644
--- a/plparse/totem-pl-parser-videosite.c
+++ b/plparse/totem-pl-parser-videosite.c
@@ -75,7 +75,7 @@ totem_pl_parser_add_videosite (TotemPlParser *parser,
#ifdef HAVE_QUVI
QUVIcode rc;
quvi_t handle;
- quvi_video_t v;
+ quvi_media_t v;
char *uri;
/* properties */
const char *video_uri;
@@ -104,8 +104,8 @@ totem_pl_parser_add_videosite (TotemPlParser *parser,
return TOTEM_PL_PARSER_RESULT_ERROR;
}
- getprop (QUVIPROP_VIDEOURL, video_uri);
- if (quvi_getprop (v, QUVIPROP_VIDEOFILELENGTH, &length) == QUVI_OK)
+ getprop (QUVIPROP_MEDIAURL, video_uri);
+ if (quvi_getprop (v, QUVIPROP_MEDIACONTENTLENGTH, &length) == QUVI_OK)
length_str = g_strdup_printf ("%f", length);
else
length_str = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]