Skip to content

Commit

Permalink
Move timefilter code from lavf to lavd.
Browse files Browse the repository at this point in the history
It's only used in the JACK device.

Fixes linking shared lavd with JACK enabled.
  • Loading branch information
elenril committed Oct 21, 2011
1 parent b06df70 commit 5dd35b4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
4 changes: 3 additions & 1 deletion libavdevice/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ OBJS-$(CONFIG_ALSA_OUTDEV) += alsa-audio-common.o \
OBJS-$(CONFIG_BKTR_INDEV) += bktr.o
OBJS-$(CONFIG_DV1394_INDEV) += dv1394.o
OBJS-$(CONFIG_FBDEV_INDEV) += fbdev.o
OBJS-$(CONFIG_JACK_INDEV) += jack_audio.o
OBJS-$(CONFIG_JACK_INDEV) += jack_audio.o timefilter.o
OBJS-$(CONFIG_OSS_INDEV) += oss_audio.o
OBJS-$(CONFIG_OSS_OUTDEV) += oss_audio.o
OBJS-$(CONFIG_SNDIO_INDEV) += sndio_common.o sndio_dec.o
Expand All @@ -30,4 +30,6 @@ OBJS-$(CONFIG_LIBDC1394_INDEV) += libdc1394.o
SKIPHEADERS-$(HAVE_ALSA_ASOUNDLIB_H) += alsa-audio.h
SKIPHEADERS-$(HAVE_SNDIO_H) += sndio_common.h

TESTPROGS = timefilter

include $(SRC_PATH)/subdir.mak
2 changes: 1 addition & 1 deletion libavdevice/jack_audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "libavutil/opt.h"
#include "libavcodec/avcodec.h"
#include "libavformat/avformat.h"
#include "libavformat/timefilter.h"
#include "timefilter.h"

/**
* Size of the internal FIFO buffers as a number of audio packets
Expand Down
2 changes: 1 addition & 1 deletion libavformat/timefilter.c → libavdevice/timefilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@


#include "config.h"
#include "avformat.h"
#include "timefilter.h"
#include "libavutil/mem.h"

struct TimeFilter {
/// Delay Locked Loop data. These variables refer to mathematical
Expand Down
6 changes: 3 additions & 3 deletions libavformat/timefilter.h → libavdevice/timefilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef AVFORMAT_TIMEFILTER_H
#define AVFORMAT_TIMEFILTER_H
#ifndef AVDEVICE_TIMEFILTER_H
#define AVDEVICE_TIMEFILTER_H

/**
* Opaque type representing a time filter state
Expand Down Expand Up @@ -94,4 +94,4 @@ void ff_timefilter_reset(TimeFilter *);
*/
void ff_timefilter_destroy(TimeFilter *);

#endif /* AVFORMAT_TIMEFILTER_H */
#endif /* AVDEVICE_TIMEFILTER_H */
5 changes: 1 addition & 4 deletions libavformat/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -334,11 +334,8 @@ OBJS-$(CONFIG_RTP_PROTOCOL) += rtpproto.o
OBJS-$(CONFIG_TCP_PROTOCOL) += tcp.o
OBJS-$(CONFIG_UDP_PROTOCOL) += udp.o

# libavdevice dependencies
OBJS-$(CONFIG_JACK_INDEV) += timefilter.o

EXAMPLES = metadata output
TESTPROGS = seek timefilter
TESTPROGS = seek
TOOLS = pktdumper probetest

include $(SRC_PATH)/subdir.mak
Expand Down

0 comments on commit 5dd35b4

Please sign in to comment.