Skip to content

Commit 28c2e7d

Browse files
committed
4K place holder added
Signed-off-by: ryadav698 <[email protected]>
1 parent 6df2d7e commit 28c2e7d

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

test/gstTestHarness/rialto-api-test.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,10 @@ int my_main(int argc, char **argv)
265265
return -1;
266266
}
267267

268-
// if (!gstMediaPipeline->setVideoWindow(0, 0, 1920, 1080))
269-
// {
270-
// fprintf(stderr, "Warning: Failed to set video window. Video may not appear.\n");
271-
// }
268+
if (!gstMediaPipeline->setVideoWindow(0, 0, 1920, 1080))
269+
{
270+
fprintf(stderr, "Warning: Failed to set video window. Video may not appear.\n");
271+
}
272272

273273
// MUST happen before any attachSource() to create a Rialto Gstreamer player
274274
gstMediaPipeline->load(MediaType::MSE, "video/x-h265", "test://local"); // Dummy values
@@ -289,9 +289,9 @@ int my_main(int argc, char **argv)
289289
InjectVideo(videoReqId);
290290

291291

292-
// std::this_thread::sleep_for(std::chrono::seconds(3));
292+
std::this_thread::sleep_for(std::chrono::seconds(7));
293293

294-
// gstMediaPipeline->stop();
294+
gstMediaPipeline->stop();
295295

296296
return 0;
297297
}

test/gstTestHarness/rialto-gst-pipeline.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ bool GstMediaPipeline::init()
3232
std::shared_ptr<IMediaPipelineFactory> factory = IMediaPipelineFactory::createFactory();
3333
if (!factory) return false;
3434

35-
constexpr std::uint32_t kWidth{1920};
36-
constexpr std::uint32_t kHeight{1080};
35+
constexpr std::uint32_t kWidth{3840};
36+
constexpr std::uint32_t kHeight{2160};
37+
3738
VideoRequirements kRequirements{kWidth, kHeight};
3839

3940
m_pipeline = factory->createMediaPipeline(weak_from_this(), kRequirements);

0 commit comments

Comments
 (0)