subtitleoverlay: fix merge error

Fix merge error from commit fb6d09055a
This commit is contained in:
Wim Taymans 2012-02-09 15:51:10 +01:00
parent f31d5d7505
commit 0dd59060d9

View file

@ -240,10 +240,21 @@ _is_raw_video (GstStructure * s)
static gboolean
_is_video_pad (GstPad * pad, gboolean * hw_accelerated)
{
GstCaps *caps = gst_pad_get_current_caps (pad);
GstPad *peer = gst_pad_get_peer (pad);
GstCaps *caps;
gboolean ret;
const gchar *name;
if (peer) {
caps = gst_pad_get_current_caps (peer);
if (!caps) {
caps = gst_pad_query_caps (peer, NULL);
}
gst_object_unref (peer);
} else {
caps = gst_pad_query_caps (pad, NULL);
}
name = gst_structure_get_name (gst_caps_get_structure (caps, 0));
if (g_str_has_prefix (name, "video/x-raw-")) {
ret = TRUE;