mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-28 10:08:24 +00:00
50d8255830
- Move to official GitHub repo, since the official CDN is out of date
- Patch of LAV_Source.cpp renamed to follow file move, and updated to
fix build with FFmpeg 3.0.x - obtained from ArchLinx [1].
Note that multimedia/ffmpeg is currently still on the 2.8.x branch,
however this patch is backwards compatible with ffmpeg 2.8.x.
- Patch of RadioService.cpp updated - obtained from ArchLinux [2].
- Remove patch of podDevice_linux.cpp, as the change was upstreamed
- Add additional dependencies to LIB_DEPENDS and USE_QT4 as found by
new stage-qa script.
- Ensure program will appear in desktop manager menus by installing icon
and adding DESKTOP_ENTRIES.
- Add the audio playback run dependencies, with the option of
either VLC or GSTREAMER. Without one of these, it crashes upon run.
- Remove the LD_LIBRARY_PATH, as it is no longer needed now that the
lastfm-desktop binaries are statically linked to it's private libraries [3].
- Also do not install the *.a static libraries, as they are not used by any other
programs/ports and not needed by the lastfm-desktop binaries.
- Install all of the files required by for the .css stylesheet to work.
[1] https://aur.archlinux.org/cgit/aur.git/tree/LAV_Source_fix.patch?h=lastfm
[2] https://aur.archlinux.org/cgit/aur.git/tree/cast-bug.patch?h=lastfm
[3] a6d2225e36
Reviewed by: mat (mentor)
Approved by: vg (maintainer timeout), adamw (mentor)
Differential Revision: https://reviews.freebsd.org/D6874
41 lines
1.2 KiB
C++
41 lines
1.2 KiB
C++
--- app/fingerprinter/LAV_Source.cpp.orig 2013-09-03 12:19:10 UTC
|
|
+++ app/fingerprinter/LAV_Source.cpp
|
|
@@ -23,6 +23,10 @@
|
|
#define __STDC_CONSTANT_MACROS 1
|
|
#endif
|
|
|
|
+#ifndef AVCODEC_MAX_AUDIO_FRAME_SIZE
|
|
+#define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000
|
|
+#endif
|
|
+
|
|
extern "C" {
|
|
#include <libavformat/avformat.h>
|
|
#include <libavutil/mathematics.h>
|
|
@@ -113,7 +117,7 @@ uint8_t * LAV_SourcePrivate::decodeOneFr
|
|
{
|
|
char buf[256];
|
|
AVPacket packet;
|
|
- AVFrame *decodedFrame = avcodec_alloc_frame();
|
|
+ AVFrame *decodedFrame = av_frame_alloc();
|
|
av_init_packet(&packet);
|
|
|
|
int frameFinished = 0;
|
|
@@ -288,7 +292,7 @@ uint8_t * LAV_SourcePrivate::decodeOneFr
|
|
av_free_packet(&packet);
|
|
}
|
|
timestamp += (double)nSamples / decodedFrame->sample_rate;
|
|
- avcodec_free_frame(&decodedFrame);
|
|
+ av_frame_free(&decodedFrame);
|
|
return outBuffer;
|
|
}
|
|
|
|
@@ -405,7 +409,7 @@ void LAV_Source::getInfo(int& lengthSecs
|
|
|
|
void LAV_Source::release()
|
|
{
|
|
- if ( d->inCodecContext && d->inCodecContext->codec_id != CODEC_ID_NONE )
|
|
+ if ( d->inCodecContext && d->inCodecContext->codec_id != AV_CODEC_ID_NONE )
|
|
{
|
|
avcodec_close(d->inCodecContext);
|
|
}
|