Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates-src > by-pkgid > 200a63a321bf450a3aa7f3646e41ee84 > files > 1

terminology-1.1.0-1.1.mga6.src.rpm

--- terminology-1.1.0/src/bin/media.c.orig	2019-01-09 13:50:19.719721916 +0100
+++ terminology-1.1.0/src/bin/media.c	2019-01-09 13:50:52.620335576 +0100
@@ -1548,22 +1548,3 @@
    if (!sd) return NULL;
    return sd->o_ctrl;
 }
-
-void
-media_unknown_handle(const char *handler, const char *src)
-{
-   const char *cmd;
-   char buf[PATH_MAX];
-   char *escaped;
-
-   cmd = "xdg-open";
-   escaped = ecore_file_escape_name(src);
-   if (!escaped)
-     return;
-   if (handler && *handler)
-     cmd = handler;
-   snprintf(buf, sizeof(buf), "%s %s", cmd, escaped);
-   free(escaped);
-
-   ecore_exe_run(buf, NULL);
-}
--- terminology-1.1.0/src/bin/media.h.orig	2019-01-09 13:50:25.079821894 +0100
+++ terminology-1.1.0/src/bin/media.h	2019-01-09 13:50:59.450462973 +0100
@@ -38,6 +38,5 @@
 const char *media_get(const Evas_Object *obj);
 Media_Type media_src_type_get(const char *src);
 Evas_Object *media_control_get(const Evas_Object *obj);
-void media_unknown_handle(const char *handler, const char *src);
 
 #endif
--- terminology-1.1.0/src/bin/win.c.orig	2019-01-09 13:50:30.079915154 +0100
+++ terminology-1.1.0/src/bin/win.c	2019-01-09 13:52:26.402084790 +0100
@@ -3376,7 +3376,6 @@
 _media_http_head_timeout(void *data)
 {
    Ty_Http_Head *ty_head = data;
-   media_unknown_handle(ty_head->handler, ty_head->src);
    ty_head->timeout = NULL;
    _ty_http_head_delete(ty_head);
    return ECORE_CALLBACK_CANCEL;
@@ -3445,7 +3444,6 @@
    _ty_http_head_delete(ty_head);
    return EINA_TRUE;
 error:
-   media_unknown_handle(ty_head->handler, ty_head->src);
    _ty_http_head_delete(ty_head);
    return EINA_TRUE;
 }
@@ -3487,7 +3485,6 @@
         _ty_http_head_delete(ty_head);
 #endif
 
-        media_unknown_handle(config->helper.local.general, src);
      }
    else
      {