From adcb6172d940fcd46387e92d5515e49227d23e25 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Tue, 7 Nov 2017 07:49:49 +0100 Subject: [PATCH] streaminfo: fix compile for coolstream; add dummies to libcs-headers Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/ff04c8ce9769706f4535b7ba8afc1877c896ccc9 Author: vanhofen Date: 2017-11-07 (Tue, 07 Nov 2017) Origin message was: ------------------ - streaminfo: fix compile for coolstream; add dummies to libcs-headers --- lib/hardware/coolstream/hd1/libcoolstream/playback_cs.h | 4 +++- lib/hardware/coolstream/hd2/libcoolstream/playback_cs.h | 3 +++ src/gui/streaminfo2.cpp | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/hardware/coolstream/hd1/libcoolstream/playback_cs.h b/lib/hardware/coolstream/hd1/libcoolstream/playback_cs.h index 4e4927c0f..94249e836 100644 --- a/lib/hardware/coolstream/hd1/libcoolstream/playback_cs.h +++ b/lib/hardware/coolstream/hd1/libcoolstream/playback_cs.h @@ -31,6 +31,7 @@ typedef struct { #define MAX_PLAYBACK_PIDS 40 +struct AVFormatContext; class cPlayback { private: cPlaybackData * pd; @@ -81,7 +82,8 @@ public: bool SetTeletextPid(int /*pid*/){return true;} int GetAPid(){return 0;} void GetMetadata(std::vector /*&keys*/, std::vector /*&values*/){}; - + AVFormatContext *GetAVFormatContext(){ return NULL; } + void ReleaseAVFormatContext() {} }; #endif // __PLAYBACK_CS_H_ diff --git a/lib/hardware/coolstream/hd2/libcoolstream/playback_cs.h b/lib/hardware/coolstream/hd2/libcoolstream/playback_cs.h index 45f341d63..739373b2e 100644 --- a/lib/hardware/coolstream/hd2/libcoolstream/playback_cs.h +++ b/lib/hardware/coolstream/hd2/libcoolstream/playback_cs.h @@ -32,6 +32,7 @@ typedef struct { #define MAX_PLAYBACK_PIDS 40 +struct AVFormatContext; class cPlayback { private: cPlaybackData * pd; @@ -82,6 +83,8 @@ public: bool SetTeletextPid(int /*pid*/){return true;} int GetAPid(){return 0;} void GetMetadata(std::vector /*&keys*/, std::vector /*&values*/){}; + AVFormatContext *GetAVFormatContext(){ return NULL; } + void ReleaseAVFormatContext() {} }; #endif // __PLAYBACK_CS_H_ diff --git a/src/gui/streaminfo2.cpp b/src/gui/streaminfo2.cpp index 95041bc6f..4eda0341f 100644 --- a/src/gui/streaminfo2.cpp +++ b/src/gui/streaminfo2.cpp @@ -279,6 +279,7 @@ void CStreamInfo2::probeStreams() { if (mp) { + // not yet implemented in libcoolstream AVFormatContext *avfc = mp->getPlayback()->GetAVFormatContext(); if (avfc) {