undeclared identifier ‘LRMMS_PACKET_QUALITY’

Posted: September 29th, 2008 | Author: TnT Admin | Filed under: Errors | Tags: , | No Comments »

Action.c (10): undeclared identifier ‘LRMMS_PACKET_QUALITY’

If you happened to try out the mms_get_property API on a Media Player (MMS) and Web (HTTP/HTML) script, you may get the above error if you missed out on an include entry for the globals.h file. The compilation error is caused with constant, LRMMS_PACKET_QUALITY is not found in the globals.h file. The following snippet of the codes that resulted in the error that occurred was used, based on the Function Reference on mms_get_property API.

vuser_action()
{
int pack_quality,time_quality,pack_count,pack_rate;

pack_quality=mms_get_property(LRMMS_PACKET_QUALITY);
time_quality=mms_get_property(LRMMS_TIME_QUALITY);
pack_count=mms_get_property(LRMMS_STREAM_COUNT);
pack_rate=mms_get_property(LRMMS_STREAM_RATE);

return 0;
}

What do we need to do to resolve it? You’ve to include mic_media.h in the multi-protocol script in order for it to recognise the constants. A snippet of the globals.h can be found as followed:

#ifndef _GLOBALS_H
#define _GLOBALS_H

//——————————————————————–
// Include Files
#include “lrun.h”
#include “web_api.h”
#include “lrw_custom_body.h”
#include “mic_media.h”

//——————————————————————–
// Global Variables

#endif // _GLOBALS_H

Related Posts



Leave a Reply