*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include "plugin.h"
AxVLCVariant(VARIANTARG &v)
{
- //VariantInit(&_v);
- //VariantCopy(&_v, &v);
- _v = v;
+ VariantInit(&_v);
+ VariantCopy(&_v, &v);
};
AxVLCVariant(VARIANTARG *v)
if( NULL == ppv )
return E_POINTER;
if( (IID_IUnknown == riid)
- && (IID_IPropertyBag == riid) )
+ || (IID_IPropertyBag == riid) )
{
AddRef();
*ppv = reinterpret_cast<LPVOID>(this);
(*p.first).second = val.second;
return S_OK;
};
-
+
// custom methods
HRESULT Load(LPSTREAM pStm)
{
if( (val->first == L"(Count)") && (VT_I4 == V_VT(val->second.variantArg())) )
{
- size_t count = V_I4(val->second.variantArg());
+ size_t count = V_I4(val->second.variantArg());
delete val;
while( count-- )
{
STDMETHODIMP VLCPersistStreamInit::GetSizeMax(ULARGE_INTEGER *pcbSize)
{
pcbSize->HighPart = 0UL;
- pcbSize->LowPart = 4096UL; // just a guess
+ pcbSize->LowPart = 16384UL; // just a guess
return S_OK;
};