v4l2: fix broken boolean expression to detect non-frame buffers
https://bugzilla.gnome.org/show_bug.cgi?id=699294
This commit is contained in:
parent
cc5562a8d9
commit
bf3a0b7e37
@ -2530,7 +2530,7 @@ gst_v4l2_object_copy (GstV4l2Object * v4l2object, GstBuffer * dest,
|
|||||||
{
|
{
|
||||||
const GstVideoFormatInfo *finfo = v4l2object->info.finfo;
|
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)) {
|
finfo->format != GST_VIDEO_FORMAT_ENCODED)) {
|
||||||
GstVideoFrame src_frame, dest_frame;
|
GstVideoFrame src_frame, dest_frame;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user