validate:tools: EOS handling is the responsibility of the scenario
authorThibault Saunier <tsaunier@gnome.org>
Fri, 10 Apr 2015 11:29:47 +0000 (13:29 +0200)
committerThibault Saunier <tsaunier@gnome.org>
Mon, 13 Apr 2015 09:27:08 +0000 (11:27 +0200)
Summary: If any scenario set

Reviewers: Mathieu_Du

Differential Revision:
http://phabricator.freedesktop.org/D90

validate/tools/gst-validate-transcoding.c
validate/tools/gst-validate.c

index 4875062b19a3e25fc05fb1551193cd27d761dbb5..df33df3e2e280fe197031f83fd31411897687705 100644 (file)
@@ -456,7 +456,8 @@ bus_callback (GstBus * bus, GstMessage * message, gpointer data)
       break;
     }
     case GST_MESSAGE_EOS:
-      g_main_loop_quit (loop);
+      if (!g_getenv ("GST_VALIDATE_SCENARIO"))
+        g_main_loop_quit (loop);
       break;
     case GST_MESSAGE_BUFFERING:{
       gint percent;
index 62bff2677324f7fae89393631e75c6b53eddfceb..87a30dd5b01e4e6c36d5aad3d3cb36435ca990e5 100644 (file)
@@ -79,7 +79,8 @@ bus_callback (GstBus * bus, GstMessage * message, gpointer data)
       break;
     }
     case GST_MESSAGE_EOS:
-      g_main_loop_quit (loop);
+      if (!g_getenv ("GST_VALIDATE_SCENARIO"))
+        g_main_loop_quit (loop);
       break;
     case GST_MESSAGE_ASYNC_DONE:
       break;