[Mplayer-cvslog] CVS: main/libvo vo_jpeg.c,1.15,1.16
Ivo van Poorten CVS
syncmail at mplayerhq.hu
Sun Sep 5 19:54:11 CEST 2004
CVS change done by Ivo van Poorten CVS
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv3523/libvo
Modified Files:
vo_jpeg.c
Log Message:
Some minor vo_jpeg fixes:
Removed unused variable dst.
MPlayer now exits if it is unable to create a file for JPEG output and prints
an appropriate message, instead of going on if all is right (which is not).
Added line to authors file.
Index: vo_jpeg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_jpeg.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- vo_jpeg.c 4 Sep 2004 22:59:32 -0000 1.15
+++ vo_jpeg.c 5 Sep 2004 17:54:09 -0000 1.16
@@ -10,6 +10,7 @@
* 2003-04-25 Spring cleanup -- Alex
* 2004-08-04 Added multiple subdirectory support -- Ivo (ivop at euronet.nl)
* 2004-09-01 Cosmetics update -- Ivo
+ * 2004-09-05 Added suboptions parser -- Ivo
*
*/
@@ -147,7 +148,12 @@
if ( !buffer ) return 1;
if ( (outfile = fopen(name, "wb") ) == NULL ) {
- return 1;
+ mp_msg(MSGT_VO, MSGL_ERR, "\n%s: %s\n", info.short_name,
+ MSGTR_VO_JPEG_CantCreateFile);
+ mp_msg(MSGT_VO, MSGL_ERR, "%s: %s: %s\n",
+ info.short_name, MSGTR_VO_JPEG_GenericError,
+ strerror(errno) );
+ exit_player(MSGTR_Exit_error);
}
cinfo.err = jpeg_std_error(&jerr);
@@ -189,7 +195,6 @@
{
static uint32_t framecounter = 0, subdircounter = 0;
char buf[BUFLENGTH];
- uint8_t *dst = src[0];
static char subdirname[BUFLENGTH] = "";
struct stat stat_p;
More information about the MPlayer-cvslog
mailing list