mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
data: Add an adaptive video framerate scenario
This commit is contained in:
parent
2580de34c5
commit
464b008421
3 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
4
validate/data/adaptive_video_framerate.scenario
Normal file
4
validate/data/adaptive_video_framerate.scenario
Normal 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
|
||||
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue