File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments