Skip to content

Commit 136df74

Browse files
committed
Load window reordered after load()
Signed-off-by: ryadav698 <[email protected]>
1 parent 28c2e7d commit 136df74

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

test/gstTestHarness/rialto-api-test.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ void ConfigureVideo()
168168
CodecData codecData;
169169
const char *codec_ptr = trackVideo.codec_data.c_str();
170170
codecData.data = std::vector<uint8_t>( codec_ptr, codec_ptr + trackVideo.codec_data.size() );
171+
172+
uint32_t width = 1920;
173+
uint32_t height = 1080;
171174

172175
std::unique_ptr<IMediaPipeline::MediaSourceVideo> sourceVideo =
173176
std::make_unique<IMediaPipeline::MediaSourceVideo>(
@@ -265,14 +268,15 @@ int my_main(int argc, char **argv)
265268
return -1;
266269
}
267270

271+
272+
// MUST happen before any attachSource() to create a Rialto Gstreamer player
273+
gstMediaPipeline->load(MediaType::MSE, "video/x-h265", "test://local"); // Dummy values
274+
268275
if (!gstMediaPipeline->setVideoWindow(0, 0, 1920, 1080))
269276
{
270277
fprintf(stderr, "Warning: Failed to set video window. Video may not appear.\n");
271278
}
272279

273-
// MUST happen before any attachSource() to create a Rialto Gstreamer player
274-
gstMediaPipeline->load(MediaType::MSE, "video/x-h265", "test://local"); // Dummy values
275-
276280
ConfigureAudio();
277281
ConfigureVideo();
278282
ConfigureComplete();

0 commit comments

Comments
 (0)