~ubuntu-branches/debian/sid/smplayer/sid

« back to all changes in this revision

Viewing changes to src/prefperformance.cpp

  • Committer: Package Import Robot
  • Author(s): Maia Kozheva
  • Date: 2012-04-14 12:01:57 UTC
  • mto: (21.1.1 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: package-import@ubuntu.com-20120414120157-wb5m0kcc8uoth8p7
Tags: upstream-0.8.0
ImportĀ upstreamĀ versionĀ 0.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include "global.h"
23
23
#include "preferences.h"
24
24
 
25
 
#if YOUTUBE_SUPPORT
 
25
#ifdef YOUTUBE_SUPPORT
26
26
#include "retrieveyoutubeurl.h"
27
27
#endif
28
28
 
42
42
        fast_chapter_check->hide();
43
43
#endif
44
44
 
45
 
#if YOUTUBE_SUPPORT
 
45
#ifdef YOUTUBE_SUPPORT
46
46
        yt_quality_combo->addItem( "240p (flv)", RetrieveYoutubeUrl::FLV_240p );
47
47
 
48
48
        yt_quality_combo->addItem( "360p (flv)", RetrieveYoutubeUrl::FLV_360p );
115
115
        setFastAudioSwitching( pref->fast_audio_change );
116
116
        setThreads( pref->threads );
117
117
 
118
 
#if YOUTUBE_SUPPORT
 
118
#ifdef YOUTUBE_SUPPORT
119
119
        setYTQuality( pref->yt_quality );
120
120
#endif
121
121
}
141
141
        pref->fast_audio_change = fastAudioSwitching();
142
142
        TEST_AND_SET(pref->threads, threads());
143
143
 
144
 
#if YOUTUBE_SUPPORT
 
144
#ifdef YOUTUBE_SUPPORT
145
145
        pref->yt_quality = YTQuality();
146
146
#endif
147
147
}
260
260
        return threads_spin->value();
261
261
}
262
262
 
263
 
#if YOUTUBE_SUPPORT
 
263
#ifdef YOUTUBE_SUPPORT
264
264
void PrefPerformance::setYTQuality(int q) {
265
265
        yt_quality_combo->setCurrentIndex(yt_quality_combo->findData(q));
266
266
}
329
329
           "but it might not work with some discs.") );
330
330
#endif
331
331
 
332
 
#if YOUTUBE_SUPPORT
 
332
#ifdef YOUTUBE_SUPPORT
333
333
        setWhatsThis(yt_quality_combo, tr("Youtube quality"),
334
334
                tr("Select the preferred quality for youtube videos.") );
335
335
#endif