[Bug 621428] [playbin2] ghostpad with arbitrary getcaps func leads to not working srt subtitles

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Nov 27 13:35:27 PST 2012


https://bugzilla.gnome.org/show_bug.cgi?id=621428
  GStreamer | gst-plugins-base | 0.10.29

--- Comment #12 from Andreas Frisch <fraxinas at opendreambox.org> 2012-11-27 21:35:21 UTC ---
the stream selection works now
attached, you'll find the test case with ported api.
however, there is still one little problem with my code i guess.

it starts with the first 10s worth of text lines from the srt subtitle file,
then it switches over to dvd vobsub and displays a couple buffers until second
20. when it switches back to the srt subtitle stream at that moment, it will go
through the first couple text lines once again

gstGhostpadHasCAPS... text/x-raw, format=(string)pango-markup
Linking ghostpad: appsink
** Message: received a subtitle at position 0:00:01.001118360, running_time
0:00:01.001126491
00000000 (0x7f819008ea60): 49 74 20 77 61 73 20 61 20 74 65 73 74 2e 0a 4a  It
was a test..J
00000010 (0x7f819008ea70): 75 64 67 6d 65 6e 74 2e 20 43 6f 6e 63 65 6e 74 
udgment. Concent
00000020 (0x7f819008ea80): 72 61 74 69 6f 6e 2e 20 54 65 63 68 6e 69 71 75 
ration. Techniqu
00000030 (0x7f819008ea90): 65 2e                                            e.  
[....]
switching from stream 0 to stream 1...
switched to stream stream 1...
GST_QUERY_ACCEPT_CAPS template=text/x-raw, format=(string){ utf8, pango-markup
}; subpicture/x-dvd; subpicture/x-pgs accept=subpicture/x-dvd,
codec_data=(buffer)2320566f6253756220696e6465782066696c652c2076372028646f206e6f74206d6f646966792074686973206c696e6521290a23200a23205468697320696e64657820626c6f636b207761732067656e657261746564206279204d616b654d4b562076312e352e3520626574612077696e287838362d72656c65617365290a2320776869636820686173206e6f2072656c6174696f6e20746f20566f6253756220736f6674776172652e205468652066697273740a23206c696e652061626f76652069732070726573656e7420666f7220636f6d7061746962696c69747920726561736f6e732e0a23200a73697a653a20373230783537360a6f72673a20302c20300a616c7068613a20313030250a736d6f6f74683a204f46460a66616465696e2f6f75743a2035302c2035300a616c69676e3a204f4646206174204c45465420544f500a74696d65206f66667365743a20300a666f7263656420737562733a204f46460a70616c657474653a203030303065312c206538336630372c203030303030302c206664666466642c203131656231302c206561313265622c206661666631612c203039356437362c203763376337632c206530653065302c203730316630332c203037373330372c203030303036632c206363306165392c206432616230662c2
 03733303937320a23200a2320656e640a00
?1
** Message: received a subtitle at position 0:00:14.508000000, running_time
0:00:11.877558331
00000000 (0x7f818c3ada90): 0a c4 0a a5 00 00 00 00 00 00 00 00 00 00 00 00 
................
[...]

switching from stream 1 to stream 0...
switched to stream stream 0...
** Message: received a subtitle at position 0:00:06.351000000, running_time
0:00:20.500053573
00000000 (0x7f819008eb30): 49 74 20 77 61 73 20 61 20 74 65 73 74 2e 0a 4a  It
was a test..J
00000010 (0x7f819008eb40): 75 64 67 6d 65 6e 74 2e 20 43 6f 6e 63 65 6e 74 
udgment. Concent
00000020 (0x7f819008eb50): 72 61 74 69 6f 6e 2e 20 54 65 63 68 6e 69 71 75 
ration. Techniqu
00000030 (0x7f819008eb60): 65 2e                                            e.  
** Message: received a subtitle at position 0:00:06.671000000, running_time
0:00:20.500207752
00000000 (0x7f8190022190): 48 69 67 68 20 73 63 6f 72 65 73 20 6f 6e 20 65 
High scores on e
00000010 (0x7f81900221a0): 76 65 72 79 74 68 69 6e 67 2e                   
verything.      
** Message: received a subtitle at position 0:00:19.232000000, running_time
0:00:20.500321898
00000000 (0x7f8190076a20): 4e 6f 77 2c 20 67 65 74 20 73 6f 6d 65 20 72 65 
Now, get some re
00000010 (0x7f8190076a30): 73 74 2e                                         st. 
** Message: received a subtitle at position 0:00:21.913000000, running_time
0:00:20.500427514
00000000 (0x7f8190076ad0): 59 6f 75 20 6f 6b 61 79 3f                       You
okay?       
ERROR: from element
/GstPlayBin:playbin0/GstPlaySink:playsink/GstBin:tbin/GstBin:subtitle_bin/GstAppSink:subtitle_sink:
Internal data flow problem.
Additional debug info:
gstbasesink.c(3226): gst_base_sink_chain_unlocked ():
/GstPlayBin:playbin0/GstPlaySink:playsink/GstBin:tbin/GstBin:subtitle_bin/GstAppSink:subtitle_sink:
Received buffer without a new-segment. Assuming timestamps start from 0.
** Message: received a subtitle at position 0:00:24.638000000, running_time
0:00:21.914161901
00000000 (0x7f8190076b80): 49 20 66 65 65 6c 20 61 20 6c 6f 74 20 62 65 74  I
feel a lot bet
00000010 (0x7f8190076b90): 74 65 72 20 6e 6f 77 2e                          ter
now.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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