X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gst%2Fvideorate%2Fgstvideorate.c;h=7d1d9c0e031a2f45f37cb8e5413be97dd74101b3;hb=352edd1dd954eba6ffd71c81bd04aad8c93fb426;hp=4ec96adca8db21f7dd4064382f967e1f167014c5;hpb=6e160bed3debba38efdcf433efc5ecc74d840321;p=platform%2Fupstream%2Fgstreamer.git diff --git a/gst/videorate/gstvideorate.c b/gst/videorate/gstvideorate.c index 4ec96ad..7d1d9c0 100644 --- a/gst/videorate/gstvideorate.c +++ b/gst/videorate/gstvideorate.c @@ -340,6 +340,12 @@ gst_video_rate_setcaps (GstPad * pad, GstCaps * caps) GST_DEBUG_OBJECT (videorate, "intersect %" GST_PTR_FORMAT, caps); + /* could turn up empty, due to e.g. colorspace etc */ + if (gst_caps_get_size (caps) == 0) { + gst_caps_unref (caps); + goto no_transform; + } + /* take first possibility */ gst_caps_truncate (caps); structure = gst_caps_get_structure (caps, 0);