subtitle: don't use GST_CAPS_NONE macro
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 20 Dec 2011 11:53:16 +0000 (12:53 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 20 Dec 2011 11:53:16 +0000 (12:53 +0100)
This macro returns a singleton.

gst/playback/gstsubtitleoverlay.c

index 3ff5107ed892fb61c68daac88015abf3f977877b..ef7c665a915fb16cc5c866ec2ed4902a5f705327 100644 (file)
@@ -1928,7 +1928,7 @@ gst_subtitle_overlay_subtitle_sink_getcaps (GstPad * pad, GstCaps * filter)
 
   g_mutex_lock (self->factories_lock);
   if (G_UNLIKELY (!gst_subtitle_overlay_update_factory_list (self)))
-    ret = GST_CAPS_NONE;
+    ret = gst_caps_new_empty ();
   else if (filter)
     ret =
         gst_caps_intersect_full (filter, self->factory_caps,