Commit graph

34 commits

Author SHA1 Message Date
Thibault Saunier
cae3aabbca ges: Make ges_clip_create_track_element(s) internal methods
+ Fix tests (we still need a round of modernisation, making use of
      assets where it makes sense)

There is no reason to use those method outside of GES, so remove them,
cleaning the API and making it easier for users.

Removed APIs:
-----------
    * ges_clip_create_track_element
    * ges_clip_create_track_elements
2013-03-21 22:05:45 -03:00
Thibault Saunier
0767f08c7a Always prefer gst_object_(un)ref over g_object_(un)ref
Making the refcount issue debugging easier
2013-03-18 12:48:41 -03:00
Thibault Saunier
7943bb510a ges: Make GESTimeline responsible for adding GESTrackElement to GESTrack
+ Fix tests as necessary (Do not use agingtv as it can be "applied" on any TrackType
    	   and is not representative of what happens IRL)

We already had the infrastructure so the user can have the control over where to add
the elements (through the "select-track-for-object" signal). We now make use of that
signal everytime a GESClip is added to a GESTimelineLayer. This make user's life easier,
and object responsability clearer.
2013-03-15 00:13:09 -03:00
Thibault Saunier
795b8df1b6 Implement GESContainer
+ Fix unit tests
  + Minor enhancement in unit tests

API changes:
-----------
  * ges_track_element_get_clip     -> ges_timeline_element_get_parent
  * ges_clip_add_track_element     -> ges_container_add
  * ges_clip_release_track_element -> ges_container_remove
  * ges_clip_get_track_elements    -> ges_container_get_children
                                      (or GES_CONTAINER_CHILDREN)
2013-03-15 00:13:08 -03:00
Thibault Saunier
0888e5e25b Rename object/tobj/trobj to clip or track_element as necessary
Not really complete but it is a good start!
2013-02-15 16:26:30 -03:00
Thibault Saunier
d21791a8d0 Rename GESTimelineLayer.xxx_object to GESTimelineLayer.xxx_clip 2013-02-15 15:23:15 -03:00
Thibault Saunier
ec1db99266 track: Rename all GESTrack.xxx_object to GESTrack.xxx_element 2013-02-15 15:23:15 -03:00
Thibault Saunier
273f27a269 Rename GESTrackVideoTestSource to GESVideoTestSource 2013-02-15 14:42:05 -03:00
Thibault Saunier
5a5aae6e63 Rename GESTrackAudioTestSource to GESAudioTestSource 2013-02-15 14:42:05 -03:00
Thibault Saunier
d69964fd2a Rename GESTrackObject to GESTrackElement 2013-02-15 14:42:05 -03:00
Thibault Saunier
e3dc877c4b Rename GESTimelineTestSource to GESTestSourceClip 2013-02-15 14:42:04 -03:00
Thibault Saunier
04a3c49ebd Rename GESTimelineObject to GESClip 2013-02-15 14:42:02 -03:00
Thibault Saunier
f0359481c0 Add a GESTimelineElement base class
+ Port GESTrackObject and GESTimelineObject to the new baseclass
2013-02-15 14:42:02 -03:00
Thibault Saunier
e796a2aab2 tests: Fix misc issues
Now GST_CAPS_ANY is a singleton, it is not returning a newly created caps
anymore
2012-12-29 19:38:12 -03:00
Sebastian Dröge
bc0f335734 Allow applications to select to which track a track object should be added
Modifies some  API:
    ges_timeline_object_create_track_objects now take a GESTrackType instead of a
        GESTrack as second argument, and return a GList instead of a boolean
    ges_timeline_object_create_track_object now take a GESTrackType instead of a
        GESTrack as second argument
2012-12-29 19:36:52 -03:00
Tim-Philipp Müller
426fffb6c3 Fix FSF address 2012-11-04 00:25:20 +00:00
Thibault Saunier
35cae2c80c tests: Move common code to test-utils 2012-09-25 15:10:35 +02:00
Thibault Saunier
0102e69571 tests: Fix backgroundsource test 2012-05-26 17:53:36 -04:00
Thibault Saunier
8fbe9c90b6 tests: Add basic gaps tests 2012-05-19 13:57:35 -04:00
Mathieu Duponchelle
32ce69684c ges: add track objects to the track before the track-object-added is emitted
NOTE: The caller of ges_timeline_object_create_track_object now needs to add it to
the timeline_object after calling the function.

Fix the testsuite to support that accordingly
2012-01-11 11:56:14 -03:00
Thibault Saunier
e793cb6f9c TimelineTestSource: Move private variables to instance private
Fixe/Add getter and setter methods for those variables

Fixup documentation
2011-01-08 22:45:44 +01:00
Thibault Saunier
b8493f8896 TrackAudioTestSource: Move private variables to instance private
Add getter methods to get those variables

Fixup documentation
2011-01-08 22:32:53 +01:00
Edward Hervey
2d9f03fde0 TrackVideoTestSource: Move private data to instance private
Add a getter for the pattern

Document methods
2011-01-06 11:29:44 +01:00
Edward Hervey
648f8802db tests: Put clearer names on tests
Makes it easier to figure out which test failed :)
2010-12-20 12:03:48 +01:00
Edward Hervey
8ca6f66f4c GESTrackObject: Hide more variables and provide accessors for them 2010-12-16 15:00:46 +01:00
Brandon Lewis
286c5f78db supply type param to _find_track_objects in unit tests 2010-09-01 16:56:03 +02:00
Brandon Lewis
12a2d3b3fe expose freq and volume props in GESTimelineTestSource 2010-07-09 13:21:16 +02:00
Brandon Lewis
9f71c1ff8c convert rest of code to use GESVideoTestPattern 2010-07-09 13:21:16 +02:00
Brandon Lewis
e3718b4213 GESTimelineBackgroundSource -> GESTimelineTestSource 2010-07-09 13:21:15 +02:00
Brandon Lewis
ae8d9b1544 GESTrackVideoBackgroundSource -> GESTrackVideoTestSource 2010-07-09 13:21:14 +02:00
Brandon Lewis
11edd461eb don't forget to unref objects in unit tests 2010-07-09 13:21:08 +02:00
Brandon Lewis
efb7524a0a test vpatern property in unit tests 2010-07-09 13:21:08 +02:00
Brandon Lewis
71da78c364 test Backgroudn sources in layers 2010-07-09 13:21:07 +02:00
Brandon Lewis
878fac9c6a check in background source unit test 2010-07-09 13:21:06 +02:00