File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -388,18 +388,17 @@ static void startBackground(demux_t *p_demux)
388
388
fmt .i_group = 1 ;
389
389
390
390
p_sys -> p_dummy_video = es_out_Add (p_demux -> out , & fmt );
391
- es_format_Clean (& fmt );
392
391
393
392
if (!p_sys -> p_dummy_video ) {
394
- msg_Err (p_demux , "Error adding background ES" );
395
- return ;
393
+ msg_Err (p_demux , "Error adding background ES" );
394
+ goto out ;
396
395
}
397
396
398
397
block_t * p_block = block_Alloc (fmt .video .i_width * fmt .video .i_height *
399
398
fmt .video .i_bits_per_pixel / 8 );
400
399
if (!p_block ) {
401
400
msg_Err (p_demux , "Error allocating block for background video" );
402
- return ;
401
+ goto out ;
403
402
}
404
403
405
404
// XXX TODO: what would be correct timestamp ???
@@ -411,6 +410,9 @@ static void startBackground(demux_t *p_demux)
411
410
memset (p , 0x80 , fmt .video .i_width * fmt .video .i_height / 2 );
412
411
413
412
es_out_Send (p_demux -> out , p_sys -> p_dummy_video , p_block );
413
+
414
+ out :
415
+ es_format_Clean (& fmt );
414
416
}
415
417
416
418
static void stopBackground (demux_t * p_demux )
You can’t perform that action at this time.
0 commit comments