data: Add an adaptive video framerate scenario

This commit is contained in:
Thibault Saunier 2013-10-07 17:18:37 -03:00
parent 2580de34c5
commit 464b008421
3 changed files with 7 additions and 1 deletions

View file

@ -10,6 +10,7 @@ scenarios_DATA = simple_seeks.scenario \
pause_resume.scenario \
scrub_forward_seeking.scenario \
adaptive_video_size.scenario \
adaptive_video_framerate.scenario \
switch_audio_track.scenario
EXTRA_DIST = simple_seeks.scenario \
@ -23,4 +24,5 @@ EXTRA_DIST = simple_seeks.scenario \
pause_resume.scenario \
scrub_forward_seeking.scenario \
adaptive_video_size.scenario \
adaptive_video_framerate.scenario \
switch_audio_track.scenario

View file

@ -0,0 +1,4 @@
set-restriction, playback_time=5.0, restriction-caps="video/x-raw,framerate=(fraction)5/1"
set-restriction, playback_time=10.0, restriction-caps="video/x-raw,framerate=(fraction)30/1"
eos, playback_time=15.0

View file

@ -556,9 +556,9 @@ main (int argc, gchar ** argv)
exit:
gst_element_set_state (pipeline, GST_STATE_NULL);
g_main_loop_unref (mainloop);
g_object_unref (pipeline);
g_object_unref (monitor);
g_object_unref (runner);
g_object_unref (pipeline);
#ifdef G_OS_UNIX
g_source_remove (signal_watch_id);