<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 16, 2014 at 4:44 PM, Rémi Denis-Courmont <span dir="ltr"><<a href="mailto:remi@remlab.net" target="_blank">remi@remlab.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
+int Import_Dir ( vlc_object_t *p_this)<br>
+{<br>
+    demux_t  *p_demux = (demux_t *)p_this;<br>
+<br>
+    bool b_is_dir = false;<br>
+    stream_Control( p_demux->s, STREAM_IS_DIRECTORY, &b_is_dir );<br>
</blockquote>
<br>
In principles, b_is_dir is undefined on error, so slightly flawed logic.<br>
<br></blockquote><div><br></div><div>this  call is documented as 'should not fail', so this should not happen. But i've fixed it anyway<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
+<br>
+void Close_Dir ( vlc_object_t *p_this)<br>
+{<br>
+<br>
+}<br>
</blockquote>
<br>
No compiler warnings?<br></blockquote><div><br></div><div>Fixed. Thank you very much<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
+    while( ( p_input = stream_ReadDir(p_demux->s) ) != NULL )<br>
+    {<br>
+        msg_Warn(p_demux, "FOUND ITEM: %s", p_input->psz_name);<br>
</blockquote>
<br>
...<br></blockquote><div><br></div><div>Indeed :-/<br></div><div> <br></div></div></div><div class="gmail_extra"><div class="gmail_quote">--Lta</div></div></div>