]> git.sesse.net Git - vlc/blobdiff - modules/audio_output/hd1000a.cpp
Fix PortAudio warnings
[vlc] / modules / audio_output / hd1000a.cpp
index 78a77d1cba7e0d3ea85d5b06ad594884c0fe7ab0..e532dfafd6e096040d6f60d2ccc8a0ecdb985bb8 100644 (file)
@@ -156,7 +156,7 @@ static int Open( vlc_object_t * p_this )
         }
     }
 
-    p_aout->output.output.i_format = AOUT_FMT_S16_NE;
+    p_aout->output.output.i_format = VLC_CODEC_S16N;
     p_aout->output.i_nb_samples = FRAME_SIZE;
     p_aout->output.output.i_physical_channels
             = AOUT_CHAN_LEFT | AOUT_CHAN_RIGHT;
@@ -175,7 +175,7 @@ static int Open( vlc_object_t * p_this )
         delete pPlayer;
         free( p_sys->ppBuffers );
         free( p_sys );
-        return VLC_ETHREAD;
+        return VLC_ENOMEM;
     }
 
     return VLC_SUCCESS;