aboutsummaryrefslogtreecommitdiff
path: root/src/app/qmmpstarter.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2020-08-12 22:29:16 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2020-08-12 22:29:16 +0000
commit90dedc4493d21f3057d86ce4289eee6471a243b5 (patch)
tree2678a4dac16bd73ca6fa7aae4bc943712ed739fe /src/app/qmmpstarter.cpp
parent7ef8d11baeaf1847ba7f1df5d858f8cffea9300d (diff)
downloadqmmp-90dedc4493d21f3057d86ce4289eee6471a243b5.tar.gz
qmmp-90dedc4493d21f3057d86ce4289eee6471a243b5.tar.bz2
qmmp-90dedc4493d21f3057d86ce4289eee6471a243b5.zip
fixed regression
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9471 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/app/qmmpstarter.cpp')
0 files changed, 0 insertions, 0 deletions
ul, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #include "ffmpegmetadatamodel.h" FFmpegMetaDataModel::FFmpegMetaDataModel(const QString &path, QObject *parent) : MetaDataModel(parent) { m_in = 0; avcodec_init(); avcodec_register_all(); av_register_all(); if (av_open_input_file(&m_in, path.toLocal8Bit(), NULL,0, NULL) < 0) return; av_find_stream_info(m_in); av_read_play(m_in); } FFmpegMetaDataModel::~FFmpegMetaDataModel() { if(m_in) av_close_input_file(m_in); } QHash<QString, QString> FFmpegMetaDataModel::audioProperties() { QHash<QString, QString> ap; if(!m_in) return ap;