mmmd_session_params_set()

Set parameters for a metadata extraction session.

Synopsis:

#include <md/md.h>
int mmmd_session_params_set( mmmd_hdl_t *hdl, 
                             const strm_dict_t *dict )

Arguments:

hdl

The handle of the session whose parameters are being set

dict

A dictionary of key-value pairs representing the parameters

Library:

libmd

Description:

Set parameters for a metadata extraction session. Once parameters are set, they can't be unset or changed. Furthermore, they apply only to MDPs that haven't been used in the current session, so you should call this function just after calling mmmd_session_open() but before calling mmmd_get().

Returns:

0 on success, -1 on error