<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="quote dark-border-color"><div class="quote light-border-color">
<div class="quote-author" style="font-weight: bold;">Thibault Saunier-4 wrote</div>
<div class="quote-message">
> Setting the auto-transition to true worked great. Can I change the type of transition?

Sure, you should just retrieve the transition and set properties on it.
</div>
</div></blockquote>


This is how I do it:
<pre>
GList * tracks = ges_timeline_get_tracks(timeline);
for (GList * tmp = tracks; tmp; tmp = tmp->next) {
  GESTrack * track = GES_TRACK(tmp->data);
  if (track->type == GES_TRACK_TYPE_VIDEO) {
    GESVideoStandardTransitionType t = ges_video_transition_get_transition_type(GES_VIDEO_TRANSITION(track));
    if (!ges_video_transition_set_transition_type(GES_VIDEO_TRANSITION(track), GESVideoStandardTransitionType::GES_VIDEO_STANDARD_TRANSITION_TYPE_FAN_B))
      throw std::exception("Could not set transition!");
  }
  gst_object_unref(track);
}
</pre>

Is there an easier way?

I get the following warnings:
<pre>
(MTest.exe:15960): GLib-GObject-WARNING **: invalid cast from 'GESVideoTrack' to
 'GESVideoTransition'

(MTest.exe:15960): GLib-GObject-WARNING **: invalid cast from 'GESVideoTrack' to
 'GESVideoTransition'

(MTest.exe:15960): GLib-GObject-WARNING **: invalid cast from 'GESVideoTrack' to
 'GESTimelineElement'

** (MTest.exe:15960): CRITICAL **: ges_timeline_element_get_duration: assertion
'GES_IS_TIMELINE_ELEMENT (self)' failed

(MTest.exe:15960): GLib-GObject-CRITICAL **: g_object_notify_by_pspec: assertion
 'G_IS_PARAM_SPEC (pspec)' failed
</pre>

Thanks!

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/GES-samples-tests-tp4673376p4673567.html">Re: GES samples/tests?</a><br/>
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/">GStreamer-devel mailing list archive</a> at Nabble.com.<br/>