Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Apps
parole
Commits
e3ecd9c0
Commit
e3ecd9c0
authored
Jul 23, 2013
by
Sean Davis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Parole doesn't load video from cmd if file name contains a space after a colon (bug #10236)
parent
62239051
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
src/parole-medialist.c
src/parole-medialist.c
+20
-3
No files found.
src/parole-medialist.c
View file @
e3ecd9c0
...
...
@@ -347,7 +347,7 @@ parole_media_list_files_open (ParoleMediaList *list, GSList *files, gboolean dis
NULL
);
len
=
g_slist_length
(
files
);
TRACE
(
"Adding files"
);
TRACE
(
"Adding
%i
files"
,
len
);
if
(
len
>
1
)
g_signal_emit
(
G_OBJECT
(
list
),
signals
[
SHOW_PLAYLIST
],
0
,
TRUE
);
...
...
@@ -1807,19 +1807,36 @@ parole_media_list_add_by_path (ParoleMediaList *list, const gchar *path, gboolea
GtkFileFilter
*
filter
;
guint
len
;
gboolean
ret
=
FALSE
;
gchar
*
full_path
;
filter
=
parole_get_supported_media_filter
();
g_object_ref_sink
(
filter
);
TRACE
(
"Path=%s"
,
path
);
if
(
g_path_is_absolute
(
path
))
{
full_path
=
g_strdup
(
path
);
}
else
{
if
(
g_file_test
(
g_strjoin
(
"/"
,
g_get_current_dir
(),
g_strdup
(
path
),
NULL
),
G_FILE_TEST_EXISTS
))
{
full_path
=
g_strjoin
(
"/"
,
g_get_current_dir
(),
g_strdup
(
path
),
NULL
);
}
else
{
full_path
=
g_strdup
(
path
);
}
}
TRACE
(
"Path=%s"
,
full_path
);
parole_get_media_files
(
filter
,
path
,
TRUE
,
&
files_list
);
parole_get_media_files
(
filter
,
full_
path
,
TRUE
,
&
files_list
);
parole_media_list_files_open
(
list
,
files_list
,
FALSE
,
emit
);
len
=
g_slist_length
(
files_list
);
ret
=
len
==
0
?
FALSE
:
TRUE
;
g_free
(
full_path
);
g_object_unref
(
filter
);
g_slist_free
(
files_list
);
return
ret
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment