Changeset 121 for smplayer/vendor/current/src/mplayerprocess.cpp
- Timestamp:
- Mar 15, 2012, 5:14:10 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/src/mplayerprocess.cpp
r118 r121 1 1 /* smplayer, GUI front-end for mplayer. 2 Copyright (C) 2006-201 1 Ricardo Villalba <rvm@escomposlinux.org>2 Copyright (C) 2006-2012 Ricardo Villalba <rvm@users.sourceforge.net> 3 3 4 4 This program is free software; you can redistribute it and/or modify … … 28 28 29 29 using namespace Global; 30 31 #define TOO_CHAPTERS_WORKAROUND 30 32 31 33 MplayerProcess::MplayerProcess(QObject * parent) : MyProcess(parent) … … 473 475 } 474 476 475 if ( (mplayer_svn == -1) && ( line.startsWith("MPlayer ")) ) {477 if ( (mplayer_svn == -1) && ((line.startsWith("MPlayer ")) || (line.startsWith("MPlayer2 "))) ) { 476 478 mplayer_svn = MplayerVersion::mplayerVersion(line); 477 479 qDebug("MplayerProcess::parseLine: MPlayer SVN: %d", mplayer_svn); … … 845 847 if (tag == "ID_CHAPTERS") { 846 848 md.chapters = value.toInt(); 849 #ifdef TOO_CHAPTERS_WORKAROUND 850 if (md.chapters > 1000) { 851 qDebug("MplayerProcess::parseLine: warning too many chapters: %d", md.chapters); 852 qDebug(" chapters will be ignored"); 853 md.chapters = 0; 854 } 855 #endif 847 856 } 848 857 else
Note:
See TracChangeset
for help on using the changeset viewer.