After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 621071 - [playbin2] no playback with fakesink instead of appsink as text-sink
[playbin2] no playback with fakesink instead of appsink as text-sink
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
0.10.29
Other Linux
: Normal normal
: 0.10.30
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-06-09 09:27 UTC by Andreas Frisch
Modified: 2010-06-10 11:08 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andreas Frisch 2010-06-09 09:27:40 UTC
when changing in the playbin-text icle the lins

  /* set appsink to get the subtitles */
  app->textsink = gst_element_factory_make ("appsink", "subtitle_sink");
  g_object_set (G_OBJECT (app->textsink), "emit-signals", TRUE, NULL);
  g_object_set (G_OBJECT (app->textsink), "ts-offset", 0 * GST_SECOND, NULL);
  g_signal_connect (app->textsink, "new-buffer", G_CALLBACK (have_subtitle), app);

  g_object_set (G_OBJECT (app->playbin), "flags", 0x45, NULL);
  g_object_set (G_OBJECT (app->playbin), "text-sink", app->textsink, NULL);
  g_object_set (G_OBJECT (app->textsink), "caps", gst_caps_from_string("text/x-pango-markup; text/plain; text/x-plain"), NULL);

to instead be:
  app->textsink = gst_element_factory_make ("fakesink", "subtitle_sink");
  g_object_set (G_OBJECT (app->textsink), "sync", TRUE, NULL);
  g_object_set (G_OBJECT (app->textsink), "dump", TRUE, NULL);
  g_object_set (G_OBJECT (app->playbin), "text-sink", app->textsink, NULL);

then i get <videosink> warning: Failed to find a usable video sink
logiles (6 mb) and example mkv file available upon request
Comment 1 Andreas Frisch 2010-06-09 11:09:27 UTC
logs can be found at http://www.opendreambox.org/~fraxinas/logs-textsink.tar.bz2
sample file available at http://www.opendreambox.org/~fraxinas/subtest.mkv
Comment 2 Sebastian Dröge (slomo) 2010-06-10 06:48:19 UTC
Thanks, found the bug and will fix it soonish.
Comment 3 Sebastian Dröge (slomo) 2010-06-10 11:08:59 UTC
commit 2b9670958d1afb79713b216285cf15a6d0ac2797
Author: Sebastian Dröge <sebastian.droege@collabora.co.uk>
Date:   Thu Jun 10 08:47:17 2010 +0200

    playbin2: If the text-sink claims to support ANY caps assume it only support
    
    Fixes bug #621071.

commit ac0f387addf4df7f75a74b54040c952fd4d45333
Author: Sebastian Dröge <sebastian.droege@collabora.co.uk>
Date:   Thu Jun 10 08:46:50 2010 +0200

    icles: Only accept plain subtitles in the playbin-text icles test