[Bug 749676] playbin: failed to get end-of-stream event when visualization flag is enabled

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu May 28 05:38:50 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=749676

Brijesh Singh <brijesh.ksingh at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #13 from Brijesh Singh <brijesh.ksingh at gmail.com> ---
You can reproduce the issue with minor modification in gst-play-1.0. I just
hacked gst-play to add loop and enable vis. See the code below. 

The test audio file is available here: 

https://github.com/sdroege/gst-player/blob/master/tests/media/audio-short.ogg


brijesh at brijesh-M11BB:~/gst-plugins-base/tools$ git diff .
diff --git a/tools/gst-play.c b/tools/gst-play.c
index f2b8ad6..c1a6275 100644
--- a/tools/gst-play.c
+++ b/tools/gst-play.c
@@ -131,6 +131,7 @@ play_new (gchar ** uris, const gchar * audio_sink, const
gchar * video_sink,
 {
   GstElement *sink;
   GstPlay *play;
+  guint flags;

   play = g_new0 (GstPlay, 1);

@@ -163,6 +164,10 @@ play_new (gchar ** uris, const gchar * audio_sink, const
gchar * video_sink,
       g_warning ("Couldn't create specified video sink '%s'", video_sink);
   }

+  g_object_get (play->playbin, "flags", &flags, NULL);
+  flags |= 0x8;
+  g_object_set (play->playbin, "flags", flags, NULL);
+
   play->loop = g_main_loop_new (NULL, FALSE);

   play->bus_watch = gst_bus_add_watch (GST_ELEMENT_BUS (play->playbin),
@@ -533,7 +538,8 @@ static gboolean
 play_next (GstPlay * play)
 {
   if ((play->cur_idx + 1) >= play->num_uris)
-    return FALSE;
+    play->cur_idx = -1;
+//    return FALSE;

   play_uri (play, play->uris[++play->cur_idx]);
   return TRUE;

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list