From: Jean-Baptiste Kempf Date: Mon, 25 May 2009 23:57:08 +0000 (+0200) Subject: Merge commit 'origin/1.0-bugfix' X-Git-Tag: 1.1.0-ff~5762 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=658686029ee756fbf4beb8e0cdcc4b0bc5dd18ed;p=vlc Merge commit 'origin/1.0-bugfix' --- 658686029ee756fbf4beb8e0cdcc4b0bc5dd18ed diff --cc NEWS index 433a682930,06ff7e1ae3..ec2eae6496 --- a/NEWS +++ b/NEWS @@@ -1,11 -1,4 +1,11 @@@ +Changes between 1.0.0-rc1 and 1.1.0-git: +---------------------------------------- + +Mac OS X Interface: + * Completely reworked user interface (based upon works from GSoC 2008) + + - Changes between 0.9.9a and 1.0.0-rc1: + Changes between 0.9.9a and 1.0.0-rc2: ------------------------------------ Important notes: diff --cc modules/video_output/snapshot.c index 5b6c4c330a,2fc7c2af8f..411f1e5615 --- a/modules/video_output/snapshot.c +++ b/modules/video_output/snapshot.c @@@ -157,22 -159,24 +159,28 @@@ static int Init( vout_thread_t *p_vout int i_height; int i_datasize; - i_width = config_GetInt( p_vout, "snapshot-width" ); - i_height = config_GetInt( p_vout, "snapshot-height" ); + i_width = config_GetInt( p_vout, "vout-snapshot-width" ); + i_height = config_GetInt( p_vout, "vout-snapshot-height" ); - psz_chroma = config_GetPsz( p_vout, "snapshot-chroma" ); - if( !psz_chroma ) + psz_chroma = config_GetPsz( p_vout, "vout-snapshot-chroma" ); + if( psz_chroma ) { - msg_Err( p_vout, "Cannot find chroma information." ); - return VLC_EGENERIC; + if( strlen( psz_chroma ) < 4 ) + { + msg_Err( p_vout, "vout-snapshot-chroma should be 4 characters long" ); + return VLC_EGENERIC; + } + i_chroma = VLC_FOURCC( psz_chroma[0], psz_chroma[1], + psz_chroma[2], psz_chroma[3] ); + free( psz_chroma ); } - else + + i_chroma = vlc_fourcc_GetCodecFromString( VIDEO_ES, psz_chroma ); + free( psz_chroma ); + + if( !i_chroma ) { - msg_Err( p_vout, "Cannot find chroma information." ); + msg_Err( p_vout, "snapshot-chroma should be 4 characters long" ); return VLC_EGENERIC; }