Skip to content

Commit

Permalink
[mmalcodec] Remove DVDVideoCodecMMAL wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix committed May 8, 2015
1 parent a90fc0a commit edb6a3e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 163 deletions.
4 changes: 2 additions & 2 deletions xbmc/cores/dvdplayer/DVDCodecs/DVDFactoryCodec.cpp
Expand Up @@ -40,7 +40,7 @@
#if defined(HAS_IMXVPU)
#include "Video/DVDVideoCodecIMX.h"
#endif
#include "Video/DVDVideoCodecMMAL.h"
#include "Video/MMALCodec.h"
#include "Video/DVDVideoCodecStageFright.h"
#if defined(HAS_LIBAMCODEC)
#include "utils/AMLUtils.h"
Expand Down Expand Up @@ -306,7 +306,7 @@ CDVDVideoCodec* CDVDFactoryCodec::CreateVideoCodec(CDVDStreamInfo &hint, const C
hint.codec == AV_CODEC_ID_VP6 || hint.codec == AV_CODEC_ID_VP6F || hint.codec == AV_CODEC_ID_VP6A || hint.codec == AV_CODEC_ID_VP8 ||
hint.codec == AV_CODEC_ID_THEORA || hint.codec == AV_CODEC_ID_MJPEG || hint.codec == AV_CODEC_ID_MJPEGB || hint.codec == AV_CODEC_ID_VC1 || hint.codec == AV_CODEC_ID_WMV3)
{
if ( (pCodec = OpenCodec(new CDVDVideoCodecMMAL(), hint, options)) ) return pCodec;
if ( (pCodec = OpenCodec(new CMMALVideo(), hint, options)) ) return pCodec;
}
}
#endif
Expand Down
106 changes: 0 additions & 106 deletions xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecMMAL.cpp

This file was deleted.

51 changes: 0 additions & 51 deletions xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecMMAL.h

This file was deleted.

3 changes: 2 additions & 1 deletion xbmc/cores/dvdplayer/DVDCodecs/Video/MMALCodec.cpp
Expand Up @@ -130,7 +130,8 @@ CMMALVideo::~CMMALVideo()
{
if (g_advancedSettings.CanLogComponent(LOGVIDEO))
CLog::Log(LOGDEBUG, "%s::%s %p", CLASSNAME, __func__, this);
assert(m_finished);
if (!m_finished)
Dispose();

pthread_mutex_destroy(&m_output_mutex);

Expand Down
4 changes: 2 additions & 2 deletions xbmc/cores/dvdplayer/DVDCodecs/Video/MMALCodec.h
Expand Up @@ -62,7 +62,7 @@ class CMMALVideoBuffer
private:
};

class CMMALVideo
class CMMALVideo : public CDVDVideoCodec
{
typedef struct mmal_demux_packet {
uint8_t *buff;
Expand All @@ -84,7 +84,7 @@ class CMMALVideo
virtual bool ClearPicture(DVDVideoPicture* pDvdVideoPicture);
virtual unsigned GetAllowedReferences() { return 3; }
virtual void SetDropState(bool bDrop);
virtual const char* GetName(void) { return (const char*)m_pFormatName; }
virtual const char* GetName(void) { return m_pFormatName ? m_pFormatName:"mmal-xxx"; }
virtual bool GetCodecStats(double &pts, int &droppedPics);
virtual void SetSpeed(int iSpeed);

Expand Down
1 change: 0 additions & 1 deletion xbmc/cores/dvdplayer/DVDCodecs/Video/Makefile.in
Expand Up @@ -39,7 +39,6 @@ endif

ifeq (@USE_MMAL@,1)
SRCS += MMALCodec.cpp
SRCS += DVDVideoCodecMMAL.cpp
endif

LIB=Video.a
Expand Down

0 comments on commit edb6a3e

Please sign in to comment.