vrawdepay: fix parsing of sampling field
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 2 Jun 2009 17:30:30 +0000 (19:30 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 2 Jun 2009 17:33:28 +0000 (19:33 +0200)
commit a12d9a80f225be97b3674b1a0506ac66544dbf49 broke the parsing of the
sampling.

gst/rtp/gstrtpvrawdepay.c

index f633889..2b3d799 100644 (file)
@@ -142,7 +142,7 @@ gst_rtp_vraw_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps)
   if (gst_structure_get_string (structure, "interlace"))
     goto interlaced;
 
-  if (gst_structure_get_string (structure, "sampling"))
+  if (!(str = gst_structure_get_string (structure, "sampling")))
     goto no_sampling;
 
   if (!strcmp (str, "RGB")) {