[grilo-plugins] lua-factory: Handle filesize types



commit f4e90ca94b94e59577a87c8897e052df0e0b4443
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Nov 26 17:48:53 2014 +0100

    lua-factory: Handle filesize types
    
    https://bugzilla.gnome.org/show_bug.cgi?id=740761

 src/lua-factory/grl-lua-library.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/lua-factory/grl-lua-library.c b/src/lua-factory/grl-lua-library.c
index 6f06018..2746a3a 100644
--- a/src/lua-factory/grl-lua-library.c
+++ b/src/lua-factory/grl-lua-library.c
@@ -808,6 +808,9 @@ grl_l_media_get_keys (lua_State *L)
       case G_TYPE_STRING:
         lua_pushstring (L, grl_data_get_string (GRL_DATA (os->media), key_id));
         break;
+      case G_TYPE_INT64:
+        lua_pushnumber (L, grl_data_get_int64 (GRL_DATA (os->media), key_id));
+        break;
       default:
         if (type == G_TYPE_DATE_TIME) {
           GDateTime *date = grl_data_get_boxed (GRL_DATA (os->media), key_id);


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