[totem] Don't pass garbage to AddItem
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [totem] Don't pass garbage to AddItem
- Date: Fri, 20 Nov 2009 13:44:27 +0000 (UTC)
commit 99a02e3de707cb9abe351749c3526e4554ff3fd6
Author: Bastien Nocera <hadess hadess net>
Date: Fri Nov 20 01:55:42 2009 +0000
Don't pass garbage to AddItem
if some arguments aren't present in playlist.add
browser-plugin/totemConePlaylist.cpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/browser-plugin/totemConePlaylist.cpp b/browser-plugin/totemConePlaylist.cpp
index 031096f..14b3ecf 100644
--- a/browser-plugin/totemConePlaylist.cpp
+++ b/browser-plugin/totemConePlaylist.cpp
@@ -80,10 +80,12 @@ totemConePlaylist::InvokeByIndex (int aIndex,
return false;
NPString title;
- GetNPStringFromArguments (argv, argc, 1, title);
+ if (!GetNPStringFromArguments (argv, argc, 1, title))
+ title.UTF8Characters = NULL;
NPString options;
- GetNPStringFromArguments (argv, argc, 2, options);
+ if (!GetNPStringFromArguments (argv, argc, 2, options))
+ options.UTF8Characters = NULL;
//FIXME handle options as array
//http://wiki.videolan.org/Documentation:WebPlugin#Playlist_object
char *subtitle = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]