[totem/wip/hadess/backend-fixes: 2/2] backend: Throw a warning when curl gets used



commit 0460af481d8f214efa7e1c2809388a062d839fc9
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Feb 12 15:44:50 2019 +0100

    backend: Throw a warning when curl gets used
    
    As it disables download buffering, as mentioned in:
    https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/551

 src/backend/bacon-video-widget.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c
index 5bf70938a..7bfdebbf6 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -2742,7 +2742,9 @@ playbin_source_setup_cb (GstElement       *playbin,
                         GstElement       *source,
                         BaconVideoWidget *bvw)
 {
-  GST_DEBUG ("Got source of type %s", G_OBJECT_TYPE_NAME (source));
+  GST_DEBUG ("Got source of type '%s'", G_OBJECT_TYPE_NAME (source));
+  if (g_strcmp0 (G_OBJECT_TYPE_NAME (source), "GstCurlHttpSrc") == 0)
+    g_warning ("Download buffering not supported with GstCurlHttpSrc, see 
https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/551";);
   bvw_set_user_agent_on_element (bvw, source);
   bvw_set_referrer_on_element (bvw, source);
   bvw_set_auth_on_element (bvw, source);


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