[grilo-plugins] lua-factory: Add comment in grl_util_build_media()



commit 3782031748f391750e432562a9f2b14368494268
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Feb 26 12:32:35 2014 +0100

    lua-factory: Add comment in grl_util_build_media()
    
    For the next person that will try to unfold the switch statement.

 src/lua-factory/grl-lua-library.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/lua-factory/grl-lua-library.c b/src/lua-factory/grl-lua-library.c
index b449bdd..e551476 100644
--- a/src/lua-factory/grl-lua-library.c
+++ b/src/lua-factory/grl-lua-library.c
@@ -169,6 +169,8 @@ grl_util_build_media (lua_State *L,
         break;
 
       default:
+        /* Non-fundamental types don't reduce to ints, so can't be
+         * in the switch statement */
         if (type == G_TYPE_DATE_TIME) {
           GDateTime *date = grl_date_time_from_iso8601 (lua_tostring (L, -1));
           grl_data_set_boxed (GRL_DATA (media), key_id, date);


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