From dabddb812605e2b710346863d172049f80629a45 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 2 Jun 2009 19:30:30 +0200 Subject: vrawdepay: fix parsing of sampling field commit a12d9a80f225be97b3674b1a0506ac66544dbf49 broke the parsing of the sampling. --- gst/rtp/gstrtpvrawdepay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gst/rtp/gstrtpvrawdepay.c') diff --git a/gst/rtp/gstrtpvrawdepay.c b/gst/rtp/gstrtpvrawdepay.c index f6338892..2b3d7998 100644 --- a/gst/rtp/gstrtpvrawdepay.c +++ b/gst/rtp/gstrtpvrawdepay.c @@ -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")) { -- cgit