Changeset 2075:40cb5be7baaf in roaraudio for plugins/gstreamer0.10


Ignore:
Timestamp:
07/19/09 05:35:48 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

use new api

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/gstreamer0.10/roarsink.c

    r1600 r2075  
    142142static void gst_roarsink_init (GstRoarSink * roarsink, GstRoarSinkClass * klass) { 
    143143  memset(&(roarsink->con), 0, sizeof(roarsink->con)); 
    144   roarsink->con.fh = -1; 
     144  roar_connect_fh(&(roarsink->con), -1); 
    145145  roarsink->fd     = -1; 
    146146  roarsink->host   = NULL; 
     
    163163 
    164164  /* no fd, we're done with the template caps */ 
    165   if (roarsink->con.fh < 0 || roarsink->cur_caps == NULL) { 
     165  if (roar_get_connection_fh(&(roarsink->con)) < 0 || roarsink->cur_caps == NULL) { 
    166166    GST_LOG_OBJECT(roarsink, "getcaps called, returning template caps"); 
    167167    return NULL; 
     
    282282  GstRoarSink *roarsink = GST_ROARSINK(asink); 
    283283 
    284   if ((roarsink->fd == -1) && (roarsink->con.fh == -1)) 
     284  if ((roarsink->fd == -1) && (roar_get_connection_fh(&(roarsink->con)) == -1)) 
    285285    return TRUE; 
    286286 
Note: See TracChangeset for help on using the changeset viewer.