GNOME Bugzilla – Bug 684084
playbin: text-sink property behaviour
Last modified: 2013-08-16 16:25:19 UTC
i have an appsink element in my application to handle subtitles proprietarily the appsink caps include "text/x-raw" (which used to be "text/plain" in the 0.10 code) now i set the appsink property of playbin to this appsink element this way, i received the subtitle buffers emitted by subparse directly with my appsink element back in the 0.10.36 version now, playbin complains that i'm missing a decoder for application/x-subtitle
Created attachment 224759 [details] [review] 1.0 port patch for playbin-text example
Comment on attachment 224759 [details] [review] 1.0 port patch for playbin-text example >- g_signal_emit_by_name (appsink, "pull-buffer", &buffer); >+ g_signal_emit_by_name (appsink, "pull-sample", &buffer); This needs to go into a GstSample *sample; variable, and then you need to get the buffer from that with buffer = gst_sample_get_buffer(sample);
Created attachment 224762 [details] [review] port playbin-text example to 1.0 api
Thanks, pushed: commit 6dd83020292f44c105f00019b095914c734df527 Author: Andreas Frisch <fraxinas@opendreambox.org> Date: Wed Sep 19 17:29:01 2012 +0200 tests: port playbin-text example to 1.0 api https://bugzilla.gnome.org/show_bug.cgi?id=684084
Created attachment 224768 [details] this version of playbin-text takes an optional third parameter for current-sink property when compiling and trying this modified playbin-text testcase, it will fail when setting text stream 1 or 2 with this file: ftp://93.31.155.175/pub/RedFox/Plasma/DivXTest/DivXTest_v2/I_CONTAINERS/CONT-4F.mkv
Is this still a problem with latest git master?
it switches to the correct subtitle streams now! had to modify the testcase a little bit so that it would play all the way through, though. i'd consider it fixed!
Created attachment 251817 [details] this version of playbin-text takes an optional third parameter for current-sink property