Wordpress get_post_meta with query_post() function

Hello forums

Is it possible to get custom fields data using the query_post() function of wordpress? I have this:

query_posts('category_name=videos');
 while (have_posts()) : the_post();
 echo get_post_meta($post->ID, 'videoThumb', true);
 endwhile;

But nothing happens. When I echo $post->ID the string is null.

Any ideas? Thanks

Sorry Never should have spoken too soon, correction it CAN be done just globalize $post


query_posts('category_name=videos');

 while (have_posts()) : the_post();
global $post;

 echo get_post_meta($post->ID, 'videoThumb', true);

 endwhile; 

Cheers

Never mind it can’t be done, I use WP_Query instead and globalize $post

$my_query = new WP_Query('cat=4');
  while ($my_query->have_posts()) : $my_query->the_post();
    global $post; 
    echo get_post_meta($post->ID, 'videoThumb', true);

 endwhile; 

Cheers!!