Merge mic's minor patchlet (bug #2092)
authorMark Spencer <markster@digium.com>
Mon, 19 Jul 2004 15:52:57 +0000 (15:52 +0000)
committerMark Spencer <markster@digium.com>
Mon, 19 Jul 2004 15:52:57 +0000 (15:52 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3478 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile
codecs/Makefile
frame.c

index c9b3bf9..bfd3b25 100755 (executable)
--- a/Makefile
+++ b/Makefile
@@ -372,6 +372,7 @@ bininstall: all
        mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/keys
        mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/firmware
        mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/firmware/iax
+       mkdir -p $(DESTDIR)$(ASTMANDIR)/man8
        install -m 644 keys/iaxtel.pub $(DESTDIR)$(ASTVARLIBDIR)/keys
        install -m 644 keys/freeworlddialup.pub $(DESTDIR)$(ASTVARLIBDIR)/keys
        install -m 644 asterisk.8.gz $(DESTDIR)$(ASTMANDIR)/man8
index 43c4e13..82d8f45 100755 (executable)
@@ -86,7 +86,9 @@ codec_lpc10.so: codec_lpc10.o $(LIBLPC10)
 %.so : %.o
        $(CC) $(SOLINK) -o $@ $<
 
+ifneq ($(wildcard .depend),)
 include .depend
+endif
 
 install: all
        for x in $(CODECS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
diff --git a/frame.c b/frame.c
index c93d2ab..72197d5 100755 (executable)
--- a/frame.c
+++ b/frame.c
@@ -136,6 +136,9 @@ struct ast_frame *ast_smoother_read(struct ast_smoother *s)
        int len;
        /* IF we have an optimization frame, send it */
        if (s->opt) {
+               if (s->opt->offset < AST_FRIENDLY_OFFSET)
+                       ast_log(LOG_WARNING, "Returning a frame of inappropriate offset (%d).",
+                                                       s->opt->offset);
                opt = s->opt;
                s->opt = NULL;
                return opt;