if (priv->is_image) {
if (track->type != GES_TRACK_TYPE_VIDEO) {
- GST_DEBUG ("Object is still image, creating silent audio source");
- res = (GESTrackObject *) ges_track_audio_test_source_new ();
+ GST_DEBUG ("Object is still image, not adding any audio source");
+ return NULL;
} else {
GST_DEBUG ("Creating a GESTrackImageSource");
res = (GESTrackObject *) ges_track_image_source_new (priv->uri);
ges_track_remove_object (v, trobj);
ges_timeline_object_release_track_object (tlobj, trobj);
- /* the timeline object should create an audio test source when the is_image
- * property is set true */
-
+ /* the timeline object should not create any TrackObject in the audio track */
trobj = ges_timeline_object_create_track_object (tlobj, a);
- ges_timeline_object_add_track_object (tlobj, trobj);
- fail_unless (GES_IS_TRACK_AUDIO_TEST_SOURCE (trobj));
-
- /* The track holds a reference to the object
- * And the timelineobject holds a reference to the object */
- ASSERT_OBJECT_REFCOUNT (trobj, "Audio Track Object", 2);
-
- ges_track_remove_object (v, trobj);
- ges_timeline_object_release_track_object (tlobj, trobj);
-
+ fail_unless (trobj == NULL);
g_object_unref (a);
g_object_unref (v);