[totem] Add support for authentication on the soup HTTP source



commit 7d66f40d515f0e2ca010796f16beb90a9af13b87
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Nov 18 18:49:58 2009 +0000

    Add support for authentication on the soup HTTP source

 src/backend/bacon-video-widget-gst-0.10.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/backend/bacon-video-widget-gst-0.10.c b/src/backend/bacon-video-widget-gst-0.10.c
index 52d5717..040211e 100644
--- a/src/backend/bacon-video-widget-gst-0.10.c
+++ b/src/backend/bacon-video-widget-gst-0.10.c
@@ -1681,8 +1681,9 @@ bvw_check_missing_auth (BaconVideoWidget * bvw, GstMessage * err_msg)
     return TRUE;
   }
 
-  /* RTSP source with user-id property ? */
-  if (g_strcmp0 ("GstRTSPSrc", G_OBJECT_TYPE_NAME (err_msg->src)) == 0 &&
+  /* RTSP or HTTP source with user-id property ? */
+  if ((g_strcmp0 ("GstRTSPSrc", G_OBJECT_TYPE_NAME (err_msg->src)) == 0 ||
+       g_strcmp0 ("GstSoupHTTPSrc", G_OBJECT_TYPE_NAME (err_msg->src)) == 0) &&
       g_object_class_find_property (G_OBJECT_GET_CLASS (err_msg->src), "user-id") != NULL) {
     GError *err = NULL;
     gchar *dbg = NULL;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]