[totem] backend: Better error message for RTSP blocked by firewall
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] backend: Better error message for RTSP blocked by firewall
- Date: Wed, 30 Apr 2014 11:26:25 +0000 (UTC)
commit 2f3512ca38fd47edbccb5b2b183a015d2f59042d
Author: Bastien Nocera <hadess hadess net>
Date: Thu Apr 24 11:48:53 2014 +0200
backend: Better error message for RTSP blocked by firewall
https://bugzilla.gnome.org/show_bug.cgi?id=728789
src/backend/bacon-video-widget.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c
index 5b7421b..c19b7fc 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -3694,7 +3694,6 @@ bvw_error_from_gst_error (BaconVideoWidget *bvw, GstMessage * err_msg)
/* FIXME:
* Unemitted errors:
- * BVW_ERROR_NETWORK_UNREACHABLE
* BVW_ERROR_DVD_ENCRYPTED
* BVW_ERROR_FILE_ENCRYPTED
* BVW_ERROR_EMPTY_FILE
@@ -3803,9 +3802,14 @@ bvw_error_from_gst_error (BaconVideoWidget *bvw, GstMessage * err_msg)
}
g_strfreev (descs);
} else {
- ret = g_error_new_literal (BVW_ERROR, BVW_ERROR_CODEC_NOT_HANDLED,
- _("An audio or video stream is not handled due to missing codecs. "
- "You might need to install additional plugins to be able to play some
types of movies"));
+ if (g_str_has_prefix (bvw->priv->mrl, "rtsp:")) {
+ ret = g_error_new_literal (BVW_ERROR, BVW_ERROR_NETWORK_UNREACHABLE,
+ _("This stream cannot be played. It's possible that a firewall is blocking
it."));
+ } else {
+ ret = g_error_new_literal (BVW_ERROR, BVW_ERROR_CODEC_NOT_HANDLED,
+ _("An audio or video stream is not handled due to missing codecs. "
+ "You might need to install additional plugins to be able to play some
types of movies"));
+ }
}
goto done;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]