Commit 0648e6f4 authored by Ludovic Fauvet's avatar Ludovic Fauvet

Replace a magic number by a #define

parent 9ae84ccf
......@@ -93,7 +93,7 @@ void VlcPluginBase::event_callback(const libvlc_event_t* event,
NPError VlcPluginBase::init(int argc, char* const argn[], char* const argv[])
{
/* prepare VLC command line */
const char *ppsz_argv[32];
const char *ppsz_argv[MAX_PARAMS];
int ppsz_argc = 0;
#ifndef NDEBUG
......@@ -138,7 +138,7 @@ NPError VlcPluginBase::init(int argc, char* const argn[], char* const argv[])
bool b_autoloop = false;
/* parse plugin arguments */
for( int i = 0; (i < argc) && (ppsz_argc < 32); i++ )
for( int i = 0; (i < argc) && (ppsz_argc < MAX_PARAMS); i++ )
{
/* fprintf(stderr, "argn=%s, argv=%s\n", argn[i], argv[i]); */
......
......@@ -40,6 +40,8 @@
#include "../common/vlc_player_options.h"
#include "../common/vlc_player.h"
#define MAX_PARAMS 32
typedef enum vlc_toolbar_clicked_e {
clicked_Unknown = 0,
clicked_Play,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment