gstreamer: add patch to fix bug #591664 (srt subtitle resync issue after seeking)
[vuplus_openembedded] / packages / gstreamer / files / playsink-textsink.diff
1 diff --git a/gst/playback/gstplaysink.c b/gst/playback/gstplaysink.c
2 index 0a65a4f..6c54f48 100644
3 --- a/gst/playback/gstplaysink.c
4 +++ b/gst/playback/gstplaysink.c
5 @@ -2385,6 +2385,15 @@ gst_play_sink_send_event_to_sink (GstPlaySink * playsink, GstEvent * event)
6  {
7    gboolean res = TRUE;
8  
9 +  if (playsink->textchain && playsink->text_sink) {
10 +    gst_event_ref (event);
11 +    if ((res = gst_element_send_event (playsink->textchain->chain.bin, event))) {
12 +      GST_DEBUG_OBJECT (playsink, "Sent event succesfully to text sink");
13 +    } else {
14 +      GST_DEBUG_OBJECT (playsink, "Event failed when sent to text sink");
15 +    }
16 +  }
17 +
18    if (playsink->videochain) {
19      gst_event_ref (event);
20      if ((res = gst_element_send_event (playsink->videochain->chain.bin, event))) {
21 @@ -2401,6 +2410,7 @@ gst_play_sink_send_event_to_sink (GstPlaySink * playsink, GstEvent * event)
22      }
23      GST_DEBUG_OBJECT (playsink, "Event failed when sent to audio sink");
24    }
25 +
26  done:
27    gst_event_unref (event);
28    return res;