changeset 6161:c50ea0721e78

applied 64bit patch from Ulrich Hecht <uli at suse dot de>
author alex
date Thu, 23 May 2002 14:53:11 +0000
parents bb0679dd3195
children 0e56fbf9039a
files libmpdemux/tv.c
diffstat 1 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/tv.c	Thu May 23 14:49:13 2002 +0000
+++ b/libmpdemux/tv.c	Thu May 23 14:53:11 2002 +0000
@@ -328,7 +328,8 @@
 	    case AFMT_MPEG:
 	    case AFMT_AC3:
 	    default:
-		mp_msg(MSGT_TV, MSGL_ERR, "Audio type '%s' unsupported!\n", audio_out_format_name(audio_format));
+		mp_msg(MSGT_TV, MSGL_ERR, "Audio type '%s (%x)' unsupported!\n",
+		    audio_out_format_name(audio_format), audio_format);
 		goto no_audio;
 	}
 	
@@ -371,17 +372,21 @@
 }
 
 /* ================== STREAM_TV ===================== */
+tvi_handle_t *tvi_init_dummy(char *device);
+tvi_handle_t *tvi_init_v4l(char *device);
+tvi_handle_t *tvi_init_bsdbt848(char *device);
+
 tvi_handle_t *tv_begin(void)
 {
     if (!strcmp(tv_param_driver, "dummy"))
-	return (tvi_handle_t *)tvi_init_dummy(tv_param_device);
+	return tvi_init_dummy(tv_param_device);
 #ifdef HAVE_TV_V4L
     if (!strcmp(tv_param_driver, "v4l"))
-	return (tvi_handle_t *)tvi_init_v4l(tv_param_device);
+	return tvi_init_v4l(tv_param_device);
 #endif
 #ifdef HAVE_TV_BSDBT848
     if (!strcmp(tv_param_driver, "bsdbt848"))
-	return (tvi_handle_t *)tvi_init_bsdbt848(tv_param_device);
+	return tvi_init_bsdbt848(tv_param_device);
 #endif
 
     mp_msg(MSGT_TV, MSGL_ERR, "No such driver: %s\n", tv_param_driver);