[MPlayer-cvslog] r37717 - in trunk: m_property.c m_property.h
reimar
subversion at mplayerhq.hu
Sat Feb 13 20:30:16 CET 2016
Author: reimar
Date: Sat Feb 13 20:30:15 2016
New Revision: 37717
Log:
Change m_property_string_ro to take a const string.
Modified:
trunk/m_property.c
trunk/m_property.h
Modified: trunk/m_property.c
==============================================================================
--- trunk/m_property.c Sat Feb 13 20:23:08 2016 (r37716)
+++ trunk/m_property.c Sat Feb 13 20:30:15 2016 (r37717)
@@ -373,11 +373,11 @@ int m_property_time_ro(const m_option_t*
return m_property_double_ro(prop,action,arg,var);
}
-int m_property_string_ro(const m_option_t* prop,int action,void* arg,char* str) {
+int m_property_string_ro(const m_option_t* prop,int action,void* arg,const char* str) {
switch(action) {
case M_PROPERTY_GET:
if(!arg) return 0;
- *(char**)arg = str;
+ *(const char**)arg = str;
return 1;
case M_PROPERTY_PRINT:
if(!arg) return 0;
Modified: trunk/m_property.h
==============================================================================
--- trunk/m_property.h Sat Feb 13 20:23:08 2016 (r37716)
+++ trunk/m_property.h Sat Feb 13 20:30:15 2016 (r37717)
@@ -215,7 +215,7 @@ int m_property_time_ro(const m_option_t*
void* arg,double var);
/// get/print the string
-int m_property_string_ro(const m_option_t* prop,int action,void* arg, char* str);
+int m_property_string_ro(const m_option_t* prop,int action,void* arg, const char* str);
/// get/print a bitrate
int m_property_bitrate(const m_option_t* prop,int action,void* arg,int rate);
More information about the MPlayer-cvslog
mailing list