Skip to content

Commit 0fc20d1

Browse files
committed
Core: Fix crash in negotiate_video_with_unsupport_depth() (issue #7)
1 parent d45e284 commit 0fc20d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libvisual/libvisual/lv_actor.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,8 @@ static int negotiate_video_with_unsupported_depth (VisActor *actor, VisVideoDept
375375
if (req_depth == VISUAL_VIDEO_DEPTH_GL)
376376
return -VISUAL_ERROR_ACTOR_GL_NEGOTIATE;
377377

378-
int req_width = actor->transform->width;
379-
int req_height = actor->transform->height;
378+
int req_width = actor->video->width;
379+
int req_height = actor->video->height;
380380

381381
actplugin->requisition (visual_actor_get_plugin (actor), &req_width, &req_height);
382382

0 commit comments

Comments
 (0)