[totem/wip/hadess/backend-fixes: 1/2] backend: Simplify GstDownloadBuffer check



commit 360d68502dd4055c6fb4a10f709aceff9f61d817
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Feb 12 15:44:32 2019 +0100

    backend: Simplify GstDownloadBuffer check

 src/backend/bacon-video-widget.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c
index 5cd83849a..5bf70938a 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -2756,7 +2756,7 @@ playbin_element_setup_cb (GstElement *playbin,
 {
   char *template;
 
-  if (g_strcmp0 (G_OBJECT_CLASS_NAME (G_OBJECT_GET_CLASS (G_OBJECT (element))), "GstDownloadBuffer") != 0)
+  if (g_strcmp0 (G_OBJECT_TYPE_NAME (element), "GstDownloadBuffer") != 0)
     return;
 
   /* See also bacon_video_widget_initable_init() */


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