Skip to content

Commit

Permalink
alien5 changes for new aml lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Captain committed Jul 31, 2018
1 parent 026aaf2 commit 387ce4d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/service/servicemp3.cpp
Expand Up @@ -23,6 +23,12 @@

#include <sys/time.h>

#if HAVE_ALIEN5
extern "C" {
#include <codec.h>
}
#endif

#define HTTP_TIMEOUT 10

/*
Expand Down Expand Up @@ -722,6 +728,9 @@ eServiceMP3::eServiceMP3(eServiceReference ref):
g_object_set(dvb_videosink, "e2-async", FALSE, NULL);
g_object_set(m_gst_playbin, "video-sink", dvb_videosink, NULL);
}
#if HAVE_ALIEN5
aml_set_mediaplay_source((void *)m_gst_playbin,(int)m_sourceinfo.is_audio);
#endif
/*
* avoid video conversion, let the dvbmediasink handle that using native video flag
* volume control is done by hardware, do not use soft volume flag
Expand Down

2 comments on commit 387ce4d

@nickersk
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this breaks e2 compile in oea nextp3 with error (aml_set_mediaplay_source does not exist in codec.h) :

service/servicemp3.cpp: In constructor 'eServiceMP3::eServiceMP3(eServiceReference)':
service/servicemp3.cpp:732:3: error: 'aml_set_mediaplay_source' was not declared in this scope
aml_set_mediaplay_source((void *)m_gst_playbin,(int)m_sourceinfo.is_audio);
^~~~~~~~~~~~~~~~~~~~~~~~
service/servicemp3.cpp:732:3: note: suggested alternative: 'aml_set_demux2_source'
aml_set_mediaplay_source((void *)m_gst_playbin,(int)m_sourceinfo.is_audio);
^~~~~~~~~~~~~~~~~~~~~~~~
aml_set_demux2_source

@atvcaptain
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok i check this

Please sign in to comment.