Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
3fdc5f7c
Commit
3fdc5f7c
authored
Aug 25, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
control/media_instance.c: Retain the media descriptor, don't duplicate.
parent
2823cee5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/control/media_instance.c
src/control/media_instance.c
+6
-3
No files found.
src/control/media_instance.c
View file @
3fdc5f7c
...
...
@@ -233,7 +233,8 @@ libvlc_media_instance_new_from_media_descriptor(
if
(
!
p_mi
)
return
NULL
;
p_mi
->
p_md
=
libvlc_media_descriptor_duplicate
(
p_md
);
libvlc_media_descriptor_retain
(
p_md
);
p_mi
->
p_md
=
p_md
;
return
p_mi
;
}
...
...
@@ -378,7 +379,8 @@ void libvlc_media_instance_set_media_descriptor(
return
;
/* It is ok to pass a NULL md */
}
p_mi
->
p_md
=
libvlc_media_descriptor_duplicate
(
p_md
);
libvlc_media_descriptor_retain
(
p_md
);
p_mi
->
p_md
=
p_md
;
/* The policy here is to ignore that we were created using a different
* libvlc_instance, because we don't really care */
...
...
@@ -400,7 +402,8 @@ libvlc_media_instance_get_media_descriptor(
if
(
!
p_mi
->
p_md
)
return
NULL
;
return
libvlc_media_descriptor_duplicate
(
p_mi
->
p_md
);
libvlc_media_descriptor_retain
(
p_mi
->
p_md
);
return
p_mi
->
p_md
;
}
/**************************************************************************
...
...
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