v4l2: fix broken boolean expression to detect non-frame buffers

https://bugzilla.gnome.org/show_bug.cgi?id=699294
This commit is contained in:
Michael Olbrich 2013-04-30 09:16:07 +02:00 committed by Sebastian Dröge
parent cc5562a8d9
commit bf3a0b7e37

View file

@ -2530,7 +2530,7 @@ gst_v4l2_object_copy (GstV4l2Object * v4l2object, GstBuffer * dest,
{
const GstVideoFormatInfo *finfo = v4l2object->info.finfo;
if (finfo && (finfo->format != GST_VIDEO_FORMAT_UNKNOWN ||
if (finfo && (finfo->format != GST_VIDEO_FORMAT_UNKNOWN &&
finfo->format != GST_VIDEO_FORMAT_ENCODED)) {
GstVideoFrame src_frame, dest_frame;