validate: Add a switch_audio_track_while_paused scenario
authorThibault Saunier <tsaunier@gnome.org>
Tue, 29 Apr 2014 16:51:54 +0000 (18:51 +0200)
committerThibault Saunier <tsaunier@gnome.org>
Fri, 2 May 2014 16:30:22 +0000 (18:30 +0200)
And run it as a default

validate/data/Makefile.am
validate/data/switch_audio_track_while_paused.scenario [new file with mode: 0644]
validate/tools/launcher/apps/gst-validate.py

index 4e899a2..3fb2628 100644 (file)
@@ -14,6 +14,7 @@ scenarios_DATA = simple_seeks.scenario \
                  adaptive_video_framerate_size.scenario\
                  force_key_unit.scenario\
                  seek_with_stop.scenario\
+                 switch_audio_track_while_paused.scenario\
                  switch_audio_track.scenario
 
 EXTRA_DIST = simple_seeks.scenario \
@@ -31,4 +32,5 @@ EXTRA_DIST = simple_seeks.scenario \
              adaptive_video_framerate_size.scenario\
              force_key_unit.scenario\
              seek_with_stop.scenario\
+             switch_audio_track_while_paused.scenario\
              switch_audio_track.scenario
diff --git a/validate/data/switch_audio_track_while_paused.scenario b/validate/data/switch_audio_track_while_paused.scenario
new file mode 100644 (file)
index 0000000..36fb434
--- /dev/null
@@ -0,0 +1,11 @@
+description, summary="Change audio track while pipeline is paused", min-audio-track=2, duration=6.0
+pause, playback_time=1.0;
+
+# Wait so that humans can see the pipeline is paused
+wait, duration=0.5
+switch-track, name=Next-audio-track, type=audio, index=(string)+1
+
+# Wait so that humans can see the pipeline is paused
+wait, duration=0.5
+play;
+stop, playback_time=5.0
index e9bb03e..447f02e 100644 (file)
@@ -153,17 +153,23 @@ G_V_SCENARIOS = {Protocols.FILE: ["play_15s",
                                   "seek_forward",
                                   "seek_backward",
                                   "seek_with_stop",
+                                  "switch_audio_track",
+                                  "switch_audio_track_while_paused",
                                   "scrub_forward_seeking"],
                  Protocols.HTTP: ["play_15s",
                                   "fast_forward",
                                   "seek_forward",
                                   "seek_backward",
                                   "seek_with_stop",
+                                  "switch_audio_track",
+                                  "switch_audio_track_while_paused",
                                   "reverse_playback"],
                  Protocols.HLS: ["play_15s",
                                  "fast_forward",
                                  "seek_forward",
                                  "seek_with_stop",
+                                  "switch_audio_track",
+                                  "switch_audio_track_while_paused",
                                  "seek_backward"],
                  }