lists.zerezo.com
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
***BOGO*** [MPlayer-dev-eng] [PATCH] declare functions in stream/tv.c before using them
- Date: Tue, 17 Jun 2008 13:03:11 +0200
- From: Diego Biurrun <diego@xxxxxxxxxx>
- Subject: ***BOGO*** [MPlayer-dev-eng] [PATCH] declare functions in stream/tv.c before using them
This patch moves two functions in stream/tv.c before the place they are
used to fix some implicit declaration warnings.
I will commit this on Thursday unless somebody objects.
Diego
Index: stream/tv.c
===================================================================
--- stream/tv.c (revision 27095)
+++ stream/tv.c (working copy)
@@ -323,6 +323,34 @@
tv_channel_current->prev->next = NULL;
free(tv_channel_current);
}
+
+int tv_set_norm(tvi_handle_t *tvh, char* norm)
+{
+ tvh->norm = norm_from_string(tvh, norm);
+
+ mp_msg(MSGT_TV, MSGL_V, MSGTR_TV_SelectedNorm, norm);
+ if (tvh->functions->control(tvh->priv, TVI_CONTROL_TUN_SET_NORM, &tvh->norm) != TVI_CONTROL_TRUE) {
+ mp_msg(MSGT_TV, MSGL_ERR, MSGTR_TV_CannotSetNorm);
+ return 0;
+ }
+ tvh->functions->control(tvh->priv,TV_VBI_CONTROL_RESET,tvh->tv_param);
+ return 1;
+}
+
+int tv_set_norm_i(tvi_handle_t *tvh, int norm)
+{
+ tvh->norm = norm;
+
+ mp_msg(MSGT_TV, MSGL_V, MSGTR_TV_SelectedNormId, norm);
+ if (tvh->functions->control(tvh->priv, TVI_CONTROL_TUN_SET_NORM, &tvh->norm) != TVI_CONTROL_TRUE) {
+ mp_msg(MSGT_TV, MSGL_ERR, MSGTR_TV_CannotSetNorm);
+ return 0;
+ }
+
+ tvh->functions->control(tvh->priv,TV_VBI_CONTROL_RESET,tvh->tv_param);
+ return(1);
+}
+
static int open_tv(tvi_handle_t *tvh)
{
int i;
@@ -1048,33 +1076,6 @@
return 1;
}
-int tv_set_norm(tvi_handle_t *tvh, char* norm)
-{
- tvh->norm = norm_from_string(tvh, norm);
-
- mp_msg(MSGT_TV, MSGL_V, MSGTR_TV_SelectedNorm, norm);
- if (tvh->functions->control(tvh->priv, TVI_CONTROL_TUN_SET_NORM, &tvh->norm) != TVI_CONTROL_TRUE) {
- mp_msg(MSGT_TV, MSGL_ERR, MSGTR_TV_CannotSetNorm);
- return 0;
- }
- tvh->functions->control(tvh->priv,TV_VBI_CONTROL_RESET,tvh->tv_param);
- return 1;
-}
-
-int tv_set_norm_i(tvi_handle_t *tvh, int norm)
-{
- tvh->norm = norm;
-
- mp_msg(MSGT_TV, MSGL_V, MSGTR_TV_SelectedNormId, norm);
- if (tvh->functions->control(tvh->priv, TVI_CONTROL_TUN_SET_NORM, &tvh->norm) != TVI_CONTROL_TRUE) {
- mp_msg(MSGT_TV, MSGL_ERR, MSGTR_TV_CannotSetNorm);
- return 0;
- }
-
- tvh->functions->control(tvh->priv,TV_VBI_CONTROL_RESET,tvh->tv_param);
- return(1);
-}
-
demuxer_desc_t demuxer_desc_tv = {
"Tv card demuxer",
"tv",
_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng