[vls-devel] CVS Commit: vls (tooney)

cvs at videolan.org cvs at videolan.org
Thu Oct 16 12:49:51 CEST 2003


Update of /cvs/videolan/vls/src/core
Modified Files:
	thread.cpp 

Update of /cvs/videolan/vls/src/modules/raw2ts
Modified Files:
	raw2ts.cpp raw2ts.h rawcapture.cpp 

Update of /cvs/videolan/vls/src/modules/v4lreader
Modified Files:
	v4lreader.cpp v4lreader.h 

Update of /cvs/videolan/vls/src/server
Modified Files:
	buffer.cpp 

Log Message:

  Bug fixes in vls v4l streaming
    Courtesy of Andrew Baumann <andrewb at cse.unsw.edu.au>

  * changes C_Semaphore::TryWait() to accept any non-zero return value  
  from sem_trywait() rather than just EAGAIN as indicating that the     
  semaphore is held. The version in RedHat 9 was returning -1 rather    
  than EAGAIN (might be related to the NPTL libraries, I'm not sure).   

  * Puts the correct ES ID on the audio stream generated by raw2ts,     
  rather than 0x3 (MPEG1 audio). I had to do this to try to get AC3     
  working.                                                              

  * Fixes the video and audio grabbers / encoder thread to use a unique 
  buffer for each frame / sample! Previously the audio grabber thread   
  created one buffer, read each sample into that same buffer, and       
  placed it into the fifo. This obviously isn't safe, and was causing   
  the garbled audio that I was getting (and which others seem to have   
  reported). I also noticed that the video code was doing the same      
  thing, I can only imagine that it worked because on a fast CPU you'd  
  be processing one frame at a time.                                    

  * Fixes the video and audio threads not to call Release() on the      
  condition variable after a Signal(), which itself already releases    
  the lock (another race condition).                                    

  * Changes the time stamping code in the audio capture thread not to   
  use floating point arithmetic.                                        

  * Fixes the V4L reader module not to open or ioctl the audio device   
  if audio is muted.                                                    

  * Fixes the constructors of C_SyncFifo, C_DatedFifo, and C_NetList to 
  initialise all of their instance variables.                           

-- 
tooney

-- 
This is the vls-devel mailing-list, see http://www.videolan.org/streaming/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vls-devel mailing list