[dvblast-devel] dvblastctl: Fix get_pids and get_pid commands.
Georgi Chorbadzhiyski
git at videolan.org
Thu Oct 6 11:04:43 CEST 2011
dvblast | branch: master | Georgi Chorbadzhiyski <gf at unixsol.org> | Thu Oct 6 12:01:39 2011 +0300| [bde362ba1acfd8431c6915c9c0b9687da5af7f84] | committer: Georgi Chorbadzhiyski
dvblastctl: Fix get_pids and get_pid commands.
The table describing commands was messed up and also
there was a break missing in command build up.
> http://git.videolan.org/gitweb.cgi/dvblast.git/?a=commit;h=bde362ba1acfd8431c6915c9c0b9687da5af7f84
---
dvblastctl.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dvblastctl.c b/dvblastctl.c
index 43b75e8..49bd997 100644
--- a/dvblastctl.c
+++ b/dvblastctl.c
@@ -192,8 +192,8 @@ static const struct dvblastctl_option options[] =
{ "get_nit", 0, CMD_GET_NIT },
{ "get_sdt", 0, CMD_GET_SDT },
{ "get_pmt", 1, CMD_GET_PMT }, /* arg: service_id (uint16_t) */
- { "get_pids", 0, CMD_RELOAD },
- { "get_pid", 1, CMD_RELOAD }, /* arg: pid (uint16_t) */
+ { "get_pids", 0, CMD_GET_PIDS },
+ { "get_pid", 1, CMD_GET_PID }, /* arg: pid (uint16_t) */
{ NULL, 0, 0 }
};
@@ -388,6 +388,7 @@ int main( int i_argc, char **ppsz_argv )
i_size = COMM_HEADER_SIZE + 2;
p_data[0] = (uint8_t)((i_pid >> 8) & 0xff);
p_data[1] = (uint8_t)(i_pid & 0xff);
+ break;
}
case CMD_MMI_SEND_TEXT:
{
More information about the dvblast-devel
mailing list