Skip to content

Commit c04e706

Browse files
authored
Merge pull request #93 from negachov/fix-asset-and-rotation
Fix asset and rotation
2 parents 0a91be7 + c61833d commit c04e706

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/flutter-pi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2547,6 +2547,7 @@ static bool parse_cmd_args(int argc, char **argv) {
25472547
}
25482548

25492549
flutterpi.view.rotation = rotation;
2550+
flutterpi.view.has_rotation = true;
25502551
break;
25512552

25522553
case 'd': ;

src/plugins/omxplayer_video_player.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,11 @@ static int on_create(
10871087

10881088
player->player_id = omxpvidpp.next_unused_player_id++;
10891089
player->mgr = mgr;
1090-
strncpy(player->video_uri, uri, sizeof(player->video_uri));
1090+
if (asset != NULL) {
1091+
snprintf(player->video_uri, ,sizeof(player->video_uri), "%s/%s", flutterpi.flutter.asset_bundle_path, asset);
1092+
} else {
1093+
strncpy(player->video_uri, uri, sizeof(player->video_uri));
1094+
}
10911095

10921096
mgr->player = player;
10931097

0 commit comments

Comments
 (0)