[vlc-devel] commit: streams are always attached to access - no need for vlc_object_find ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Jun 15 18:26:48 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Jun 15 19:28:26 2008 +0300| [d0a2e557fb47b3a2376781e88cf28409620cad25]

streams are always attached to access - no need for vlc_object_find

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d0a2e557fb47b3a2376781e88cf28409620cad25
---

 src/input/stream.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/input/stream.c b/src/input/stream.c
index 2aa946d..48174e7 100644
--- a/src/input/stream.c
+++ b/src/input/stream.c
@@ -543,7 +543,7 @@ static void AStreamDestroy( stream_t *s )
 
 static void UStreamDestroy( stream_t *s )
 {
-    access_t *p_access = (access_t*)vlc_object_find( s, VLC_OBJECT_ACCESS, FIND_PARENT );
+    access_t *p_access = (access_t *)s->p_parent;
     AStreamDestroy( s );
     vlc_object_release( p_access );
     access_Delete( p_access );




More information about the vlc-devel mailing list