oggdemux: Don't end up ignoring caps just because there are no headers for this stream
authorSebastian Dröge <sebastian@centricular.com>
Thu, 1 Dec 2016 13:12:59 +0000 (15:12 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 1 Dec 2016 13:12:59 +0000 (15:12 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=775459

ext/ogg/gstoggdemux.c

index 517430ea5f85b2acace53523e54a8b972309dd79..03ac00f4e7ec9ede549c9fa4a24236e69b6df37b 100644 (file)
@@ -2816,7 +2816,7 @@ gst_ogg_demux_set_header_on_caps (GstOggDemux * ogg, GstCaps * caps,
   if (G_UNLIKELY (!caps))
     return NULL;
   if (G_UNLIKELY (!headers))
-    return NULL;
+    return caps;
 
   caps = gst_caps_make_writable (caps);
   structure = gst_caps_get_structure (caps, 0);