diff --git a/include/vlc_input_item.h b/include/vlc_input_item.h index 37d84aa275..8e1184fcad 100644 --- a/include/vlc_input_item.h +++ b/include/vlc_input_item.h @@ -172,7 +172,6 @@ struct input_item_node_t input_item_node_t **pp_children; input_item_node_t *p_parent; input_item_compar_cb compar_cb; - bool b_can_loop; }; VLC_API void input_item_CopyOptions( input_item_t *p_child, input_item_t *p_parent ); diff --git a/src/input/item.c b/src/input/item.c index 27bc789bae..37cc658a31 100644 --- a/src/input/item.c +++ b/src/input/item.c @@ -1217,7 +1217,6 @@ input_item_node_t *input_item_node_Create( input_item_t *p_input ) p_node->p_parent = NULL; p_node->i_children = 0; p_node->pp_children = NULL; - p_node->b_can_loop = false; return p_node; } diff --git a/src/playlist/item.c b/src/playlist/item.c index 501317a138..b166155387 100644 --- a/src/playlist/item.c +++ b/src/playlist/item.c @@ -185,22 +185,6 @@ static void input_item_add_subitem_tree ( const vlc_event_t * p_event, } else { - /* Don't Play a directory if it can loop into a parent */ - if( p_new_root->b_can_loop ) - { - /* Play the first regular file */ - for( ; pos < last_pos; pos++ ) - { - if( p_item->pp_children[pos]->p_input->i_type != ITEM_TYPE_DIRECTORY ) - break; - } - if( last_pos == pos ) - { - PL_UNLOCK; - playlist_Stop( p_playlist ); - return; - } - } p_play_item = p_item->pp_children[pos]; /* NOTE: this is a work around the general bug: if node-to-be-played contains sub-nodes, then second instead