~ubuntu-branches/ubuntu/saucy/clementine/saucy

« back to all changes in this revision

Viewing changes to src/engines/gstenginepipeline.h

  • Committer: Package Import Robot
  • Author(s): Thomas PIERSON
  • Date: 2012-01-01 20:43:39 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120101204339-lsb6nndwhfy05sde
Tags: 1.0.1+dfsg-1
New upstream release. (Closes: #653926, #651611, #657391)

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
 
92
92
  QUrl redirect_url() const { return redirect_url_; }
93
93
 
 
94
  QString source_device() const { return source_device_; }
 
95
 
94
96
 public slots:
95
97
  void SetVolumeModifier(qreal mod);
96
98
 
114
116
  static bool HandoffCallback(GstPad*, GstBuffer*, gpointer);
115
117
  static bool EventHandoffCallback(GstPad*, GstEvent*, gpointer);
116
118
  static void SourceDrainedCallback(GstURIDecodeBin*, gpointer);
 
119
  static void SourceSetupCallback(GstURIDecodeBin*, GParamSpec *pspec, gpointer);
117
120
 
118
121
  void TagMessageReceived(GstMessage*);
119
122
  void ErrorMessageReceived(GstMessage*);
132
135
 
133
136
  void TransitionToNext();
134
137
 
 
138
  // If the decodebin is special (ie. not really a uridecodebin) then it'll have
 
139
  // a src pad immediately and we can link it after everything's created.
 
140
  void MaybeLinkDecodeToAudio();
 
141
 
135
142
 private slots:
136
143
  void FaderTimelineFinished();
137
144
 
163
170
  QMutex buffer_consumers_mutex_;
164
171
  qint64 segment_start_;
165
172
  bool segment_start_received_;
 
173
  bool emit_track_ended_on_segment_start_;
166
174
 
167
175
  // Equalizer
168
176
  bool eq_enabled_;
203
211
  // callers can pick it up after the state change to PLAYING fails.
204
212
  QUrl redirect_url_;
205
213
 
 
214
  // When we need to specify the device to use as source (for CD device)
 
215
  QString source_device_;
 
216
 
206
217
  // Seeking while the pipeline is in the READY state doesn't work, so we have
207
218
  // to wait until it goes to PAUSED or PLAYING.
208
219
  // Also we have to wait for the decodebin to be connected.
223
234
  GstElement* uridecodebin_;
224
235
  GstElement* audiobin_;
225
236
 
226
 
  // Elements in the audiobin
227
 
  // audioconvert ! rgvolume ! rglimiter ! audioconvert ! equalizer_preamp !
228
 
  // equalizer ! volume ! audioresample ! audioconvert ! audiosink
 
237
  // Elements in the audiobin.  See comments in Init()'s definition.
 
238
  GstElement* queue_;
229
239
  GstElement* audioconvert_;
230
240
  GstElement* rgvolume_;
231
241
  GstElement* rglimiter_;