[vlc-commits] access: imem: use es_format_Change
Francois Cartegnie
git at videolan.org
Wed Jul 5 17:25:51 CEST 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jul 5 16:48:04 2017 +0200| [bda4974908074768110390702b1d70407894b8cc] | committer: Francois Cartegnie
access: imem: use es_format_Change
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bda4974908074768110390702b1d70407894b8cc
---
modules/access/imem.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/access/imem.c b/modules/access/imem.c
index 60ff35287e..873aacaebe 100644
--- a/modules/access/imem.c
+++ b/modules/access/imem.c
@@ -416,7 +416,7 @@ static int OpenDemux(vlc_object_t *object)
const int cat = var_InheritInteger(object, "imem-cat");
switch (cat) {
case 1: {
- fmt.i_cat = AUDIO_ES;
+ es_format_Change( &fmt, AUDIO_ES, 0 );
fmt.audio.i_channels = var_InheritInteger(object, "imem-channels");
fmt.audio.i_rate = var_InheritInteger(object, "imem-samplerate");
@@ -426,7 +426,7 @@ static int OpenDemux(vlc_object_t *object)
break;
}
case 2: {
- fmt.i_cat = VIDEO_ES;
+ es_format_Change( &fmt, VIDEO_ES, 0 );
fmt.video.i_width = var_InheritInteger(object, "imem-width");
fmt.video.i_height = var_InheritInteger(object, "imem-height");
unsigned num, den;
@@ -449,7 +449,7 @@ static int OpenDemux(vlc_object_t *object)
break;
}
case 3: {
- fmt.i_cat = SPU_ES;
+ es_format_Change( &fmt, SPU_ES, 0 );
fmt.subs.spu.i_original_frame_width =
var_InheritInteger(object, "imem-width");
fmt.subs.spu.i_original_frame_height =
More information about the vlc-commits
mailing list