]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix warning abount comment inside comment
authorMichael Jerris <mike@jerris.com>
Mon, 3 Mar 2014 13:25:47 +0000 (08:25 -0500)
committerMichael Jerris <mike@jerris.com>
Mon, 3 Mar 2014 13:26:54 +0000 (08:26 -0500)
src/mod/applications/mod_mp4/mod_mp4.cpp

index d089311e3412d80529b22e3edcbce45d577b6f15..7a39f8b9ab5ee53b870027ef9679372540e14e70 100644 (file)
@@ -42,7 +42,7 @@ SWITCH_MODULE_DEFINITION(mod_mp4, mod_mp4_load, NULL, NULL);
 #define VID_BIT (1 << 31)
 #define VERSION 4201
 
-/*
+#ifdef MP4_RECORD
 struct file_header {
        int32_t version;
        char video_codec_name[32];
@@ -58,7 +58,7 @@ struct record_helper {
        int fd;
        int up;
 };
-*/
+#endif
 
 struct AVParams {
        switch_core_session_t * session;
@@ -75,7 +75,7 @@ struct AVParams {
 
 static void *SWITCH_THREAD_FUNC record_video_thread(switch_thread_t *thread, void *obj)
 {
-/*
+#ifdef MP4_RECORD
        record_helper *eh = reinterpret_cast<record_helper *>(obj);
        switch_core_session_t *session = eh->session;
        switch_channel_t *channel = switch_core_session_get_channel(session);
@@ -114,13 +114,13 @@ static void *SWITCH_THREAD_FUNC record_video_thread(switch_thread_t *thread, voi
                switch_core_session_write_video_frame(session, read_frame, SWITCH_IO_FLAG_NONE, 0);
        }
        eh->up = 0;
-*/
+#endif
        return NULL;
 }
 
 SWITCH_STANDARD_APP(record_mp4_function)
 {
-/*
+#ifdef MP4_RECORD
        switch_status_t status;
        switch_frame_t *read_frame;
        switch_channel_t *channel = switch_core_session_get_channel(session);
@@ -163,7 +163,7 @@ SWITCH_STANDARD_APP(record_mp4_function)
                switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_CRIT, "Error opening file %s\n", (char *) data);
                return;
        }
-**
+*/
 
        MP4::Context ctx(reinterpret_cast<char*>(data), true);
 
@@ -258,7 +258,7 @@ SWITCH_STANDARD_APP(record_mp4_function)
 
        switch_core_session_set_read_codec(session, NULL);
        switch_core_codec_destroy(&codec);
-*/
+#endif
 }
 
 static void *SWITCH_THREAD_FUNC play_video_function(switch_thread_t *thread, void *obj)