~ubuntu-branches/ubuntu/maverick/kdemultimedia/maverick-proposed

« back to all changes in this revision

Viewing changes to kmix/mixer_backend.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2010-05-25 08:30:50 UTC
  • mfrom: (1.2.43 upstream)
  • Revision ID: james.westby@ubuntu.com-20100525083050-8o3otjqjwsnzjb6h
Tags: 4:4.4.80-0ubuntu1
* New upstream beta release:
  - Bump kde-sc-dev-latest to 4.4.80
  - Update various .install files
  - Refresh all patches
  - Add build-depends on libswscale-dev, libavcodec-dev, and libavformat-dev
    for new video thumbnailer backends
  - Add a new ffmpegthumbs package for the new video thumbnailer
* Switch to source format 3.0 (quilt):
  - Bump debhelper build-depend version to 7.3.16 or greater

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
bool Mixer_Backend::openIfValid() {
49
49
    bool valid = false;
50
50
    int ret = open();
51
 
    if ( ret == 0  && m_mixDevices.count() > 0) {
 
51
    if ( ret == 0  && (m_mixDevices.count() > 0 || _mixer->dynamic())) {
52
52
        valid = true;
53
53
        // A better ID is now calculated in mixertoolbox.cpp, and set via setID(),
54
54
        // but we want a somehow usable fallback just in case.
139
139
      return m_mixDevices.at(0);  // Backend has NOT set a recommended master. Evil backend => lets help out.
140
140
   } //first device (if exists)
141
141
   else {
142
 
      // This should never ever happen, as KMix doe NOT accept soundcards without controls
143
 
      kError(67100) << "Mixer_Backend::recommendedMaster(): returning invalid master. This is a bug in KMix. Please file a bug report stating how you produced this." << endl;
 
142
      if ( !_mixer->dynamic()) {
 
143
         // This should never ever happen, as KMix doe NOT accept soundcards without controls
 
144
         kError(67100) << "Mixer_Backend::recommendedMaster(): returning invalid master. This is a bug in KMix. Please file a bug report stating how you produced this." << endl;
 
145
      }
144
146
      return (MixDevice*)0;
145
147
   }
146
148
}
165
167
  return 0;
166
168
}
167
169
 
 
170
/**
 
171
 * Move the stream to a new destination
 
172
 */
 
173
bool Mixer_Backend::moveStream( const QString& id, const QString& destId ) {
 
174
  Q_UNUSED(id);
 
175
  Q_UNUSED(destId);
 
176
  return false;
 
177
}
 
178
 
168
179
void Mixer_Backend::errormsg(int mixer_error)
169
180
{
170
181
  QString l_s_errText;