[grilo-plugins] Emit a warning when quvi fails to parse the video URL.
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] Emit a warning when quvi fails to parse the video URL.
- Date: Tue, 2 Oct 2012 06:26:35 +0000 (UTC)
commit df5be4ea0613900531b744035d2d25b0fdeaaae1
Author: Mohammed Hassan <mohammed hassan jollamobile com>
Date: Mon Oct 1 20:32:45 2012 +0300
Emit a warning when quvi fails to parse the video URL.
This can help debugging if/when quvi fails to parse. Currently we
will fail silently which is not that friendly.
This fixes https://bugzilla.gnome.org/show_bug.cgi?id=685235
src/youtube/grl-youtube.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/youtube/grl-youtube.c b/src/youtube/grl-youtube.c
index c07ae86..8cebebe 100644
--- a/src/youtube/grl-youtube.c
+++ b/src/youtube/grl-youtube.c
@@ -606,6 +606,10 @@ build_media_from_entry (GrlYoutubeSource *source,
}
quvi_parse_close (&v);
}
+ else {
+ GRL_WARNING ("Failed to get video URL. libquvi error '%s'",
+ quvi_strerror (source->priv->quvi_handle, rc));
+ }
} else if (key == GRL_METADATA_KEY_EXTERNAL_PLAYER) {
GDataYouTubeContent *youtube_content;
youtube_content =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]