fixed for v4l2 captures, add colormodel uyuv
[goodguy/history.git] / cinelerra-5.0 / cinelerra / resourcepixmap.C
index 4cfea84328104e1c177e01495e05909e1c435cf2..a8c0f8a758f59d8a43683484413d435b20b9d07f 100644 (file)
@@ -851,8 +851,8 @@ void ResourcePixmap::draw_video_resource(TrackCanvas *canvas,
        int64_t picon_h = edit->picon_h();
 
 
-// Don't draw video if picon is bigger than edit
-       if(picon_w > edit_w) return;
+// Don't draw video if picon is empty or bigger than edit
+       if( picon_w <= 0 || picon_w > edit_w ) return;
 
 // pixels spanned by a frame
        double frame_w = edit->frame_w();