@@ -607,7 +607,7 @@ static int on_create(char *channel, struct platch_obj *object, FlutterPlatformMe
607607
608608 // create our actual player (this doesn't initialize it)
609609 if (asset != NULL ) {
610- player = gstplayer_new_from_asset (flutterpi , asset , package_name , true, false, NULL );
610+ player = gstplayer_new_from_asset (flutterpi , asset , package_name , /* play_video */ true, /* play_audio */ false, NULL );
611611 } else {
612612 temp = stdmap_get_str (arg , "httpHeaders" );
613613
@@ -618,7 +618,7 @@ static int on_create(char *channel, struct platch_obj *object, FlutterPlatformMe
618618 return 0 ;
619619 }
620620
621- player = gstplayer_new_from_network (flutterpi , uri , format_hint , true, false, NULL , headers );
621+ player = gstplayer_new_from_network (flutterpi , uri , format_hint , /* play_video */ true, /* play_audio */ false, NULL , headers );
622622 }
623623 if (player == NULL ) {
624624 LOG_ERROR ("Couldn't create gstreamer video player.\n" );
@@ -1188,14 +1188,14 @@ static int on_create_v2(const struct raw_std_value *arg, FlutterPlatformMessageR
11881188
11891189 // Create our actual player (this doesn't initialize it)
11901190 if (asset != NULL ) {
1191- player = gstplayer_new_from_asset (flutterpi , asset , package_name , true, false, NULL );
1191+ player = gstplayer_new_from_asset (flutterpi , asset , package_name , /* play_video */ true, /* play_audio */ false, NULL );
11921192
11931193 // gstplayer_new_from_network will construct a file:// URI out of the
11941194 // asset path internally.
11951195 free (asset );
11961196 asset = NULL ;
11971197 } else if (uri != NULL ) {
1198- player = gstplayer_new_from_network (flutterpi , uri , format_hint , true, false, NULL , headers );
1198+ player = gstplayer_new_from_network (flutterpi , uri , format_hint , /* play_video */ true, /* play_audio */ false, NULL , headers );
11991199
12001200 // gstplayer_new_from_network will dup the uri internally.
12011201 free (uri );
@@ -1387,14 +1387,14 @@ static int on_create_with_audio(const struct raw_std_value *arg, FlutterPlatform
13871387
13881388 // Create our actual player (this doesn't initialize it)
13891389 if (asset != NULL ) {
1390- player = gstplayer_new_from_asset (flutterpi , asset , package_name , true, true, NULL );
1390+ player = gstplayer_new_from_asset (flutterpi , asset , package_name , /* play_video */ true, /* play_audio */ true, NULL );
13911391
13921392 // gstplayer_new_from_network will construct a file:// URI out of the
13931393 // asset path internally.
13941394 free (asset );
13951395 asset = NULL ;
13961396 } else if (uri != NULL ) {
1397- player = gstplayer_new_from_network (flutterpi , uri , format_hint , true, true, NULL , headers );
1397+ player = gstplayer_new_from_network (flutterpi , uri , format_hint , /* play_video */ true, /* play_audio */ true, NULL , headers );
13981398
13991399 // gstplayer_new_from_network will dup the uri internally.
14001400 free (uri );
0 commit comments