From: Arnaud Vrac <avrac@freebox.fr>
Date: Thu, 6 Sep 2012 16:47:11 +0200
Subject: playsink: fix text sink getter when default subtitleoverlay is used


diff --git a/gst/playback/gstplaysink.c b/gst/playback/gstplaysink.c
--- a/gst/playback/gstplaysink.c
+++ b/gst/playback/gstplaysink.c
@@ -876,8 +876,12 @@ gst_play_sink_get_sink (GstPlaySink * playsink, GstPlaySinkType type)
     case GST_PLAY_SINK_TYPE_TEXT:
     {
       GstPlayTextChain *chain;
-      if ((chain = (GstPlayTextChain *) playsink->textchain))
-        chainp = chain->sink;
+      if ((chain = (GstPlayTextChain *) playsink->textchain)) {
+        if (chain->overlay != NULL)
+          chainp = chain->overlay;
+        else
+          chainp = chain->sink;
+      }
       elem = playsink->text_sink;
       break;
     }
