- GstElement *appsink = gst_element_factory_make("appsink", "subtitle_sink");
-
- if (!appsink)
- eDebug("eServiceMP3::sorry, can't play: missing gst-plugin-appsink");
-// <<<<<<< HEAD
-// else
-// {
-// m_subs_to_pull_handler_id = g_signal_connect (subsink, "new-buffer", G_CALLBACK (gstCBsubtitleAvail), this);
-// g_object_set (G_OBJECT (subsink), "caps", gst_caps_from_string("text/plain; text/x-plain; text/x-pango-markup"), NULL);
-// g_object_set (G_OBJECT (m_gst_playbin), "text-sink", subsink, NULL);
-// }
-// =======
-
-// GstElement *dvdsubdec = gst_element_factory_make("dvdsubdec", "vobsubtitle_decoder");
-// if ( !dvdsubdec )
-// eDebug("eServiceMP3::sorry, can't play: missing gst-plugin-dvdsub");
-//
-// gst_bin_add_many(GST_BIN(m_gst_subtitlebin), dvdsubdec, appsink, NULL);
-// GstPad *ghostpad = gst_ghost_pad_new("sink", gst_element_get_static_pad (appsink, "sink"));
-// // GstPad *ghostpad = gst_ghost_pad_new("sink", gst_element_get_static_pad (dvdsubdec, "sink"));
-// gst_element_add_pad (m_gst_subtitlebin, ghostpad);
-// eDebug("eServiceMP3::construct dvdsubdec=%p, appsink=%p, ghostpad=%p,", dvdsubdec, appsink, ghostpad);
-//
-// g_signal_connect (ghostpad, "notify::caps", G_CALLBACK (gstCBsubtitleCAPS), this);
-//
-// GstCaps* caps = gst_caps_from_string("text/plain; text/x-pango-markup; video/x-raw-rgb");
-// g_object_set (G_OBJECT (appsink), "caps", caps, NULL);
-// g_object_set (G_OBJECT (dvdsubdec), "singlebuffer", TRUE, NULL);
-// gst_caps_unref(caps);
-//
-// int ret = gst_element_link(dvdsubdec, appsink);
-// eDebug("eServiceMP3::linking elements dvdsubdec and subsink appsink %i", ret);
-
-// g_object_set (G_OBJECT (m_gst_playbin), "text-sink", m_gst_subtitlebin, NULL);
-
- GstCaps* caps = gst_caps_from_string("text/plain; text/x-pango-markup");
- g_object_set (G_OBJECT (appsink), "caps", caps, NULL);
-
- g_object_set (G_OBJECT (m_gst_playbin), "text-sink", appsink, NULL);
- m_subs_to_pull_handler_id = g_signal_connect (appsink, "new-buffer", G_CALLBACK (gstCBsubtitleAvail), this);
-// >>>>>>> fix empty streams list crash, correctly show/hide color key buttons, re-implement plugin-hook for blue key, fix possible exit crash
-