From: "André Roth" <neolynx@gmail.com>
To: linux-media@vger.kernel.org
Subject: Re: [PATCH v2 1/6] libdvbv5: Remove buggy parsing of extra DTV_foo parameters
Date: Tue, 2 Jul 2013 20:28:09 +0200 [thread overview]
Message-ID: <20130702202809.67b62207@myon.exnihilo> (raw)
In-Reply-To: <a386f3a8a7b76795dc487f9ae6ec728628c5bc0a.1371561676.git.gmsoft@tuxicoman.be>
Acked-by: André Roth <neolynx@gmail.com>
On Tue, 18 Jun 2013 16:19:04 +0200
Guy Martin <gmsoft@tuxicoman.be> wrote:
> The parsing of those extra parameters is buggy and completely useless since they are parsed
> individually later on in the code.
>
> Signed-off-by: Guy Martin <gmsoft@tuxicoman.be>
> ---
> lib/libdvbv5/dvb-file.c | 25 -------------------------
> 1 file changed, 25 deletions(-)
>
> diff --git a/lib/libdvbv5/dvb-file.c b/lib/libdvbv5/dvb-file.c
> index d8d583c..aa42a37 100644
> --- a/lib/libdvbv5/dvb-file.c
> +++ b/lib/libdvbv5/dvb-file.c
> @@ -392,31 +392,6 @@ static int fill_entry(struct dvb_entry *entry, char *key, char *value)
> return 0;
> }
>
> - /* Handle the DVB extra DTV_foo properties */
> - for (i = 0; i < ARRAY_SIZE(dvb_user_name); i++) {
> - if (!dvb_user_name[i])
> - continue;
> - if (!strcasecmp(key, dvb_user_name[i]))
> - break;
> - }
> - if (i < ARRAY_SIZE(dvb_user_name)) {
> - const char * const *attr_name = dvb_attr_names(i);
> - n_prop = entry->n_props;
> - entry->props[n_prop].cmd = i + DTV_USER_COMMAND_START;
> - if (!attr_name || !*attr_name)
> - entry->props[n_prop].u.data = atol(value);
> - else {
> - for (j = 0; attr_name[j]; j++)
> - if (!strcasecmp(value, attr_name[j]))
> - break;
> - if (!attr_name[j])
> - return -2;
> - entry->props[n_prop].u.data = j + DTV_USER_COMMAND_START;
> - }
> - entry->n_props++;
> - return 0;
> - }
> -
> /* Handle the other properties */
>
> if (!strcasecmp(key, "SERVICE_ID")) {
next prev parent reply other threads:[~2013-07-02 18:28 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-18 14:19 [PATCH v2 0/6] v4l-utils: v4l-utils: Fix satellite support in dvbv5-{scan,zap} tools Guy Martin
2013-06-18 14:19 ` [PATCH v2 1/6] libdvbv5: Remove buggy parsing of extra DTV_foo parameters Guy Martin
2013-07-02 18:28 ` André Roth [this message]
2013-06-18 14:19 ` [PATCH 2/6] libdvbv5: Add parsing of POLARIZATION Guy Martin
2013-07-02 18:29 ` André Roth
2013-06-18 14:19 ` [PATCH 3/6] libdvbv5: Export dvb_fe_is_satellite() Guy Martin
2013-07-02 18:29 ` André Roth
2013-06-18 14:19 ` [PATCH 4/6] libdvbv5: Fix satellite handling and apply polarization parameter to the frontend Guy Martin
2013-07-02 18:30 ` André Roth
2013-06-18 14:19 ` [PATCH 5/6] libdvbv5: Use a temporary copy of the dvb parameters when tuning Guy Martin
2013-07-02 18:31 ` André Roth
2013-06-18 14:19 ` [PATCH 6/6] dvbv5-zap: Parse the LNB from the channel file Guy Martin
2013-07-02 18:31 ` André Roth
2013-07-02 18:04 ` [PATCH v2 0/6] v4l-utils: v4l-utils: Fix satellite support in dvbv5-{scan,zap} tools André Roth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130702202809.67b62207@myon.exnihilo \
--to=neolynx@gmail.com \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.