Author: kitone
Date: Sat Apr 18 11:31:31 2015
New Revision: 916
URL: http://svn.gna.org/viewcvs/subtitleeditor?rev=916&view=rev
Log:
Fix bug #23317 : Character & messes up subtitle preview
Modified:
trunk/ChangeLog
trunk/src/vp/gstplayer.cc
Modified: trunk/ChangeLog
URL:
http://svn.gna.org/viewcvs/subtitleeditor/trunk/ChangeLog?rev=916&r1=915&r2=916&view=diff
==============================================================================
--- trunk/ChangeLog (original)
+++ trunk/ChangeLog Sat Apr 18 11:31:31 2015
@@ -1,3 +1,8 @@
+2015-04-18 kitone <[email protected]>
+
+ * src/vp/gstplayer.cc:
+ Fix bug #23317 : Character & messes up subtitle preview
+
2015-04-17 kitone <[email protected]>
* plugins/actions/timingfromplayer/timingfromplayer.cc:
Modified: trunk/src/vp/gstplayer.cc
URL:
http://svn.gna.org/viewcvs/subtitleeditor/trunk/src/vp/gstplayer.cc?rev=916&r1=915&r2=916&view=diff
==============================================================================
--- trunk/src/vp/gstplayer.cc (original)
+++ trunk/src/vp/gstplayer.cc Sat Apr 18 11:31:31 2015
@@ -293,8 +293,13 @@
{
se_debug_message(SE_DEBUG_VIDEO_PLAYER, "text='%s'", text.c_str());
- if(m_textoverlay)
- m_textoverlay->set_property("text", text);
+ if(!m_textoverlay)
+ return;
+
+ Glib::ustring corrected = text;
+ utility::replace(corrected, "&", "&");
+
+ m_textoverlay->set_property("text", corrected);
}
/*
_______________________________________________
Subtitleeditor-commits mailing list
[email protected]
https://mail.gna.org/listinfo/subtitleeditor-commits