Author: adrian
Date: Thu Nov 17 13:31:28 2011
New Revision: 9556

URL: http://svn.slimdevices.com/jive?rev=9556&view=rev
Log:
Bug: N/A
Description: fix some debug messages in rtmp code

Modified:
    7.7/trunk/squeezeplay/src/luartmp-squeezeplay/rtmp.c

Modified: 7.7/trunk/squeezeplay/src/luartmp-squeezeplay/rtmp.c
URL: 
http://svn.slimdevices.com/jive/7.7/trunk/squeezeplay/src/luartmp-squeezeplay/rtmp.c?rev=9556&r1=9555&r2=9556&view=diff
==============================================================================
--- 7.7/trunk/squeezeplay/src/luartmp-squeezeplay/rtmp.c (original)
+++ 7.7/trunk/squeezeplay/src/luartmp-squeezeplay/rtmp.c Thu Nov 17 13:31:28 
2011
@@ -399,7 +399,7 @@
                        lua_getfield(L, -1, "Rtmp");
                        lua_getfield(L, -1, "streamStartEvent");
                        if (lua_pcall(L, 0, 0, 0) != 0) {
-                               fprintf(stderr, "error running 
streamStartEvent: %s\n", lua_tostring(L, -1));
+                               LOG_ERROR(log_audio_decode, "error running 
streamStartEvent: %s\n", lua_tostring(L, -1));
                        }
                        change_state(RTMP_PLAYING);
                }
@@ -419,7 +419,7 @@
        lua_getfield(L, -1, "sendMeta");
        lua_pushlstring(L, (const char *)buf, entry->len);
        if (lua_pcall(L, 1, 0, 0) != 0) {
-               fprintf(stderr, "error running sendMeta: %s\n", lua_tostring(L, 
-1));
+               LOG_ERROR(log_audio_decode, "error running sendMeta: %s\n", 
lua_tostring(L, -1));
        }
        return STREAM_OK;
 }
@@ -452,7 +452,7 @@
        lua_getfield(L, -1, "sendMeta");
        lua_pushlstring(L, (const char *)buf, entry->len);
        if (lua_pcall(L, 1, 0, 0) != 0) {
-               fprintf(stderr, "error running sendMeta: %s\n", lua_tostring(L, 
-1));
+               LOG_ERROR(log_audio_decode, "error running sendMeta: %s\n", 
lua_tostring(L, -1));
        }
 
        if (bufmatch(buf, entry->len, "_result")) {
@@ -772,7 +772,7 @@
                                                lua_pushboolean(L, FALSE);
                                                return 1;
                                        } else if (status == STREAM_ERROR) {
-                                               LOG_WARN(log_audio_decode, 
"handler returned false - closing stream");
+                                               LOG_WARN(log_audio_decode, 
"stream error - closing stream");
                                                lua_pushnil(L);
                                                lua_pushstring(L, "stream error 
- closing stream");
                                                return 2;

_______________________________________________
Jive-checkins mailing list
Jive-checkins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/jive-checkins

Reply via email to