TimelineTestSource: Set freq/volume whether mute or not

This commit is contained in:
Edward Hervey 2010-07-06 18:58:16 +02:00
parent 5a58ef53b4
commit 714a1025d6

View file

@ -276,17 +276,15 @@ ges_timeline_test_source_create_track_object (GESTimelineObject * obj,
else if (track->type == GES_TRACK_TYPE_AUDIO) {
res = (GESTrackObject *) ges_track_audio_test_source_new ();
if (tfs->mute) {
if (tfs->mute)
ges_track_object_set_active (res, FALSE);
ges_track_audio_test_source_set_freq ((GESTrackAudioTestSource *) res,
tfs->freq);
ges_track_audio_test_source_set_volume ((GESTrackAudioTestSource *) res,
tfs->volume);
}
}
else
res = NULL;
return res;
}